RhinoReminds/rhinoreminds.service

65 lines
1.3 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
[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
# If you want logs to be kept automatically in /var/log, uncomment the following & copy "rhinoreminds-rsyslog.conf" in the root of this repository to "/etc/rsyslog.d" - and then do `sudo systemctl restart rsyslog.d`
#StandardOutput=syslog
#StandardError=syslog
#SyslogIdentifier=rhinoreminds
2018-11-10 21:17:34 +00:00
[Install]
WantedBy=multi-user.target
2018-12-27 14:05:40 +00:00