Skip to content

Instantly share code, notes, and snippets.

@BenMcLean
Last active October 25, 2018 03:03
Show Gist options
  • Save BenMcLean/b424fc9ed77b660b823b8e0ada898c46 to your computer and use it in GitHub Desktop.
Save BenMcLean/b424fc9ed77b660b823b8e0ada898c46 to your computer and use it in GitHub Desktop.
darkplaces-server as a systemd service on Ubuntu
[Unit]
Description=This service spawns a Darkplaces Quake dedicated server.
# Place this file in /lib/systemd/system
# To enable this service to launch at boot time, enter in a terminal: systemctl enable darkplaces.service
# To disable this service from launching at boot time, enter in a terminal: systemctl disable darkplaces.service
# To check the state of all existing unit files, enter in a terminal: systemctl list-unit-files
# I followed these instructions to install Darkplaces, except for the parts about starting the dedicated server on boot because those parts don't work anymore: https://ubuntuforums.org/showthread.php?t=2095900
# I based this service on https://github.com/cdev-tux/q3lite/blob/ba3f578b0dc93f2af645724fad283e7484b8d77e/misc/q3lite/pi/q3lite_ded.service
[Service]
User=root
ExecStart=/usr/games/darkplaces-server -basedir /usr/share/games/quake +exec debian_server.cfg
Restart=on-abort
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment