Skip to content

Instantly share code, notes, and snippets.

@tansly
Last active June 6, 2018 21:00
Show Gist options
  • Save tansly/0c2edf043334f11abdddc5d7613c59a5 to your computer and use it in GitHub Desktop.
Save tansly/0c2edf043334f11abdddc5d7613c59a5 to your computer and use it in GitHub Desktop.
systemd unit file for Soldat Dedicated Server
[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