2019-12-08 23:19:49 +01:00
|
|
|
# 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
|
2020-07-20 01:42:28 +02:00
|
|
|
After=network.target redis.service
|
2019-12-08 23:19:49 +01:00
|
|
|
|
|
|
|
[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
|
|
|
|
|