KF2-SRV/SOURCES/kf2-srv-update.service

31 lines
747 B
SYSTEMD
Raw Normal View History

2020-07-08 22:25:08 +00:00
[Unit]
Description=Check and Update Killing Floor 2 server
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
ExecStart=/usr/bin/kf2-srv --chat 'Scheduled server restart at 4:00 (MSK)'
ExecStart=/usr/bin/kf2-srv --chat 'Server will restart after 30 minutes'
ExecStart=/bin/sleep 15m
ExecStart=/usr/bin/kf2-srv --chat 'Server will restart after 15 minutes'
ExecStart=/bin/sleep 10m
ExecStart=/usr/bin/kf2-srv --chat 'Server will restart after 5 minutes'
ExecStart=/bin/sleep 5m
ExecStart=/usr/bin/kf2-srv --chat 'Server shutting down...'
ExecStart=/bin/sleep 5s
2020-07-08 22:25:08 +00:00
ExecStart=/usr/bin/kf2-srv --update
PrivateTmp=true
PrivateDevices=true
ProtectHome=false
ProtectSystem=false
[Install]
WantedBy=multi-user.target