Last active
June 6, 2018 21:00
-
-
Save tansly/0c2edf043334f11abdddc5d7613c59a5 to your computer and use it in GitHub Desktop.
systemd unit file for Soldat Dedicated Server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Soldat %I Server | |
After=network.target | |
[Service] | |
Type=simple | |
PIDFile=/opt/soldatserver_%i/logs/soldatserver.pid | |
ExecStartPre=/usr/bin/rm -f /opt/soldatserver_%i/logs/soldatserver.pid | |
ExecStart=/opt/soldatserver_%i/soldatserver | |
Restart=always | |
TimeoutSec=60 | |
User=soldat | |
Group=soldat | |
WorkingDirectory=/opt/soldatserver_%i/ | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment