diff options
author | Daniel Heitmann <dictvm@horrendum.de> | 2014-08-26 18:54:22 +0200 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2014-08-28 11:20:28 +0100 |
commit | ddc319b95bc87074250675f678f740714773ddbf (patch) | |
tree | 7bfb6e6880ed4afbddadf8f8a24d012d92f07e5e /q3a.service | |
parent | ed8344c924e351e40609b1d672e6e8a33dbfa162 (diff) |
added systemd unit for easier server-deployment
Diffstat (limited to 'q3a.service')
-rw-r--r-- | q3a.service | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/q3a.service b/q3a.service new file mode 100644 index 00000000..4a31572b --- /dev/null +++ b/q3a.service @@ -0,0 +1,21 @@ +[Unit] +Description=This service spawns a ioquake3 dedicated server with sane defaults +# However, these defaults may not apply to all use cases. +# See comments below for further details + +[Service] +User=q3a +ExecStart=/usr/local/games/ioquake3/ioq3ded.x86_64 +set net_port 27960 +set fs_game cpma +set dedicated 2 +set sv_pure 1 +set com_hunkmegs 128 +exec server.cfg +Restart=on-abort +# there are several options to tweak the server's performance: +# net_port defines the UDP-port used for connections to the server +# fs_game should be the mod you want to play. Not necessary for vanilla-q3/FFA +# dedicated 0 and 1 are LAN, 1 is Internet +# sv_pure 1 prevents clients from using their own pk3-files +# com_hunkmegs defaults to 56, should be 128/192/256 on a modern system(?) +# rate 25000 defines the rate in which client & server communicate +# snaps 40 defines gamestate-snapshots client & server exchange in secs +# cl_maxpackets 125 max amount of FPS being counted on the server-side + +[Install] +WantedBy=multi-user.target |