added service and timer for launching ze
This commit is contained in:
parent
0f19ab08cf
commit
de26140978
19
systemctl_launch_ze/css_ze.service
Normal file
19
systemctl_launch_ze/css_ze.service
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Runs the second ze server as user gameservers.
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
User=gameservers
|
||||||
|
Group=gameservers
|
||||||
|
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
|
||||||
|
StandardError=journal
|
||||||
|
StandardOutput=journal
|
||||||
|
#StandardInput=null
|
||||||
|
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
9
systemctl_launch_ze/css_ze.timer
Normal file
9
systemctl_launch_ze/css_ze.timer
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Restarts ze server every odd night in month at 5:30
|
||||||
|
Requires=css_ze.service
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=*-*-1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31 05:30:00
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user