Skip to content

Instantly share code, notes, and snippets.

@Drac346
Last active May 13, 2023 15:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Drac346/a3733a365637937549856d87aa1337ec to your computer and use it in GitHub Desktop.
Save Drac346/a3733a365637937549856d87aa1337ec to your computer and use it in GitHub Desktop.
7 days 2 die SystemD configuration
#place in /etc/systemd/system/7d2d.service
# systemctl start 7d2d.service
# systemctl enable 7d2d.service #autostarts the server
# systemctl stop 7d2d.service
[Unit]
Descritpion=7D2D Headless Server
After=network.target
After=systemd-user-sessions.service
After=network-online.target
[Service]
Type=simple
User=steam
ExecStart=/home/steam/7daysVanilla/7DaysToDieServer.x86_64 -configfile=/home/steam/7daysVanilla/serverconfig.xml -logfile 7DaysToDie_Data/output_log.txt $@
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment