Skip to content

Instantly share code, notes, and snippets.

@antoneliasson
Last active June 15, 2017 07:42
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 antoneliasson/afd453b0431e1a629dec to your computer and use it in GitHub Desktop.
Save antoneliasson/afd453b0431e1a629dec to your computer and use it in GitHub Desktop.
Killing Floor 2 Dedicated Server systemd service unit
[Unit]
Description=Killing Floor 2 Dedicated Server
[Service]
ExecStart=/usr/bin/unbuffer /usr/bin/wine "C:/steamcmd/kf2server/Binaries/Win64/KFServer.exe" kf-burningparis
# The user account that will run the server
User=kf2server
Group=kf2server
# The server is stopped by sending it a SIGINT (Ctrl-C)
KillSignal=SIGINT
# This hides most of the fixme errors in Wine, which are harmless in this case and just clutter up the output
Environment="WINEDEBUG=fixme-all"
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment