mitigated restarting by having timer launch another service that just restarts the actual service
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
[Unit]
|
||||
Description=Runs the second ze server as user gameservers.
|
||||
Description=Runs the ze server as user gameservers.
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
Type=simple
|
||||
User=gameservers
|
||||
Group=gameservers
|
||||
Environment=PATH=/usr/lib/jvm/jdk-17/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:
|
||||
Environment=PATH=/usr/lib/jvm/jdk-17/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:
|
||||
WorkingDirectory=/home/gameservers/css_ze/
|
||||
ExecStart=script -c "/home/gameservers/css_ze/srcds_run -game cstrike -pidfile srv_css_ze.pid -ip 135.125.188.157 -port 27015 +maxplayers 64 +fps_max 100 -tickrate 66 -timeout 0 +tv_port 27040 -insecure" /dev/null
|
||||
Restart=on-failure
|
||||
|
||||
Reference in New Issue
Block a user