mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
scripts: add sample systemd service
This commit is contained in:
21
scripts/xashds@.service
Normal file
21
scripts/xashds@.service
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=%I - Xash3D FWGS Dedicated Server
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
# replace xash by your user
|
||||||
|
# !!! do not run xash as root !!!
|
||||||
|
User=xash
|
||||||
|
Group=xash
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
# replace /opt/xash/srv by your path
|
||||||
|
WorkingDirectory=/opt/xash/srv/%I
|
||||||
|
EnvironmentFile=-/opt/xash/srv/%I/env
|
||||||
|
ExecStart=/opt/xash/bin/xash $EXTRA_OPTS
|
||||||
|
|
||||||
|
# engine should call sd_notify once half a second
|
||||||
|
WatchdogSec=5s
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user