2020-07-08 22:25:08 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Check and Update Killing Floor 2 server
|
2020-07-12 00:16:42 +00:00
|
|
|
After=network-online.target
|
|
|
|
Requires=network-online.target
|
2020-07-08 22:25:08 +00:00
|
|
|
|
|
|
|
[Service]
|
2020-07-08 23:02:30 +00:00
|
|
|
Type=oneshot
|
|
|
|
|
2020-08-05 09:36:08 +00:00
|
|
|
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv --chat '.'
|
|
|
|
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv --chat 'Server will restart after 30 minutes'
|
2020-07-08 23:02:30 +00:00
|
|
|
ExecStart=/bin/sleep 15m
|
|
|
|
|
2020-08-05 09:36:08 +00:00
|
|
|
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv --chat 'Server will restart after 15 minutes'
|
2020-07-08 23:02:30 +00:00
|
|
|
ExecStart=/bin/sleep 10m
|
|
|
|
|
2020-08-05 09:36:08 +00:00
|
|
|
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv --chat 'Server will restart after 5 minutes'
|
2020-07-08 23:02:30 +00:00
|
|
|
ExecStart=/bin/sleep 5m
|
|
|
|
|
2020-08-05 09:36:08 +00:00
|
|
|
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv --chat 'Server shutting down...'
|
2020-07-08 23:02:30 +00:00
|
|
|
ExecStart=/bin/sleep 5s
|
|
|
|
|
2020-08-05 09:36:08 +00:00
|
|
|
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv --update
|
2020-07-08 22:25:08 +00:00
|
|
|
|
|
|
|
PrivateTmp=true
|
|
|
|
PrivateDevices=true
|
|
|
|
ProtectHome=false
|
|
|
|
ProtectSystem=false
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|