This repository has been archived on 2024-07-17. You can view files and clone it, but cannot push or open issues or pull requests.
urt-service/urbanterror.service

16 lines
488 B
Desktop File

[Unit]
Description=Urban Terror Server
After=network.target
Before=shutdown.target reboot.target halt.target
OnFailure=status-send-email@%n.service
[Service]
ExecStart=/usr/bin/screen -m -d -S UrT-Server sh /home/urt/UrbanTerror42/starturt.sh
ExecStop=/usr/bin/screen -S UrT-Server -X quit
ExecReload=/usr/bin/screen -S UrT-Server -X quit && /usr/bin/screen -m -d -S UrT-Server sh /home/urt/UrbanTerror42/starturt.sh
Type=forking
Restart=on-failure
[Install]
WantedBy=multi-user.target