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
2019-02-01 22:26:22 +00:00
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
2019-03-28 23:04:52 +00:00
Restart = always
2018-12-27 14:05:40 +00:00
# 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
2019-02-04 13:54:21 +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