From f3ed9b21c09b7cb700b81ef95a856b8e32d217bd Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Fri, 16 Jun 2023 08:47:25 +0300 Subject: [PATCH] scripts: add sample systemd service --- scripts/xashds@.service | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 scripts/xashds@.service diff --git a/scripts/xashds@.service b/scripts/xashds@.service new file mode 100644 index 00000000..4f73073c --- /dev/null +++ b/scripts/xashds@.service @@ -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