RhinoReminds/rhinoreminds.service

61 lines
1 KiB
SYSTEMD
Raw Normal View History

2018-11-10 21:17:34 +00:00
[Unit]
Description=RhinoReminds XMPP Bot
After=network.target prosody.service
2018-12-27 14:05:40 +00:00
# No more than 5 crashes in 12 hours
StartLimitIntervalSec=43200
StartLimitBurst=5
[Service]
Type=forking
PIDFile=/run/rhinoreminds/rhinoreminds.pid
2018-12-27 14:05:40 +00:00
# We change our own user
User=root
WorkingDirectory=/srv/kraggwapple
ExecStart=/srv/kraggwapple/start_service.sh
Restart=on-failure
# Other Restart options: or always, on-abort, etc
# Delay restarts by 60 seconds
RestartSec=60
2019-02-08 00:24:45 +00:00
2018-12-27 14:05:40 +00:00
[Install]
WantedBy=multi-user.target
[Unit]
Description=Kraggwapple XMPP Bot
After=network.target prosody.service
# No more than 5 crashes in 12 hours
StartLimitIntervalSec=43200
StartLimitBurst=5
2018-11-10 21:17:34 +00:00
[Service]
2018-12-27 14:05:40 +00:00
Type=forking
PIDFile=/run/kraggwapple.pid
# We change our own user
User=root
WorkingDirectory=/srv/kraggwapple
ExecStart=/srv/kraggwapple/start_service.sh
2018-11-10 21:17:34 +00:00
Restart=on-failure
# Other Restart options: or always, on-abort, etc
2018-12-27 14:05:40 +00:00
# Delay restarts by 60 seconds
RestartSec=60
2018-11-10 21:17:34 +00:00
[Install]
WantedBy=multi-user.target
2018-12-27 14:05:40 +00:00