Skip to content

Commit

Permalink
scripts: add sample systemd service
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Jun 16, 2023
1 parent 16c87ae commit f3ed9b2
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions scripts/xashds@.service
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f3ed9b2

Please sign in to comment.