Added examples for config.yaml and platypush.service files
This commit is contained in:
parent
09caa66317
commit
93b378a430
2 changed files with 26 additions and 3 deletions
22
examples/systemd/platypush.service
Normal file
22
examples/systemd/platypush.service
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
# platypush systemd service example.
|
||||||
|
# Edit and copy this file to your systemd folder. It's usually
|
||||||
|
# /usr/lib/systemd/user for global installation or
|
||||||
|
# ~/.config/systemd/user for user installation. You can
|
||||||
|
# then control and monitor the service through
|
||||||
|
# systemd [--user] [start|stop|restart|status] platypush.service
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
Description=Platypush daemon
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
# platypush installation path
|
||||||
|
ExecStart=/usr/bin/platypush
|
||||||
|
Restart=always
|
||||||
|
# How long should be waited before restarting the service
|
||||||
|
# in case of failure.
|
||||||
|
RestartSec=10
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
||||||
|
|
7
setup.py
7
setup.py
|
@ -140,6 +140,7 @@ setup(
|
||||||
'requests',
|
'requests',
|
||||||
'croniter',
|
'croniter',
|
||||||
'pyScss',
|
'pyScss',
|
||||||
|
'sqlalchemy',
|
||||||
],
|
],
|
||||||
|
|
||||||
extras_require = {
|
extras_require = {
|
||||||
|
@ -150,9 +151,9 @@ setup(
|
||||||
# Support for Pushbullet backend and plugin
|
# Support for Pushbullet backend and plugin
|
||||||
'pushbullet': ['pushbullet.py'],
|
'pushbullet': ['pushbullet.py'],
|
||||||
# Support for HTTP backend
|
# Support for HTTP backend
|
||||||
'http': ['flask', 'websockets', 'python-dateutil', 'tz', 'frozendict', 'bcrypt', 'sqlalchemy'],
|
'http': ['flask', 'websockets', 'python-dateutil', 'tz', 'frozendict', 'bcrypt'],
|
||||||
# Support for uWSGI HTTP backend
|
# Support for uWSGI HTTP backend
|
||||||
'uwsgi': ['flask', 'websockets', 'python-dateutil', 'tz', 'frozendict', 'uwsgi', 'bcrypt', 'sqlalchemy'],
|
'uwsgi': ['flask', 'websockets', 'python-dateutil', 'tz', 'frozendict', 'uwsgi', 'bcrypt'],
|
||||||
# Support for database
|
# Support for database
|
||||||
'db': ['sqlalchemy'],
|
'db': ['sqlalchemy'],
|
||||||
# Support for MQTT backends
|
# Support for MQTT backends
|
||||||
|
@ -168,7 +169,7 @@ setup(
|
||||||
# Support for text2speech plugin
|
# Support for text2speech plugin
|
||||||
'tts': ['mplayer'],
|
'tts': ['mplayer'],
|
||||||
# Support for Google text2speech plugin
|
# Support for Google text2speech plugin
|
||||||
'google-tts': ['google-cloud-texttospeech'],
|
'google-tts': ['oauth2client', 'google-api-python-client', 'google-cloud-texttospeech'],
|
||||||
# Support for OMXPlayer plugin
|
# Support for OMXPlayer plugin
|
||||||
'omxplayer': ['omxplayer-wrapper'],
|
'omxplayer': ['omxplayer-wrapper'],
|
||||||
# Support for YouTube
|
# Support for YouTube
|
||||||
|
|
Loading…
Reference in a new issue