Advanced building
- makefiles; - customizable PREFIX; - tests; - other useful stuff.
This commit is contained in:
@ -6,20 +6,20 @@ Requires=network-online.target
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
||||
ExecStart=/usr/bin/kf2-srv-beta --chat 'Scheduled server restart at 4:00 (MSK)'
|
||||
ExecStart=/usr/bin/kf2-srv-beta --chat 'Server will restart after 30 minutes'
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv-beta --chat '.'
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv-beta --chat 'Server will restart after 30 minutes'
|
||||
ExecStart=/bin/sleep 15m
|
||||
|
||||
ExecStart=/usr/bin/kf2-srv-beta --chat 'Server will restart after 15 minutes'
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv-beta --chat 'Server will restart after 15 minutes'
|
||||
ExecStart=/bin/sleep 10m
|
||||
|
||||
ExecStart=/usr/bin/kf2-srv-beta --chat 'Server will restart after 5 minutes'
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv-beta --chat 'Server will restart after 5 minutes'
|
||||
ExecStart=/bin/sleep 5m
|
||||
|
||||
ExecStart=/usr/bin/kf2-srv-beta --chat 'Server shutting down...'
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv-beta --chat 'Server shutting down...'
|
||||
ExecStart=/bin/sleep 5s
|
||||
|
||||
ExecStart=/usr/bin/kf2-srv-beta --update
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv-beta --update
|
||||
|
||||
PrivateTmp=true
|
||||
PrivateDevices=true
|
||||
|
@ -12,7 +12,7 @@ StandardOutput=syslog
|
||||
StandardError=syslog
|
||||
SyslogIdentifier=kf2-srv-beta/%i
|
||||
EnvironmentFile=/etc/kf2-srv/instances-beta/%i/instance.conf
|
||||
ExecStart=/usr/games/kf2-srv-beta/Binaries/Win64/KFGameSteamServer.bin.x86_64 ${Map}?Difficulty=${Difficulty}?GameLength=${Length}?Game=${Game}?Mutator=${Mutators}?${Args} configsubdir=instances/%i -webadminport=${PortWeb} -queryport=${PortQuery} -port=${PortGame}
|
||||
ExecStart=:DEFINE_PREFIX:/games/kf2-srv-beta/Binaries/Win64/KFGameSteamServer.bin.x86_64 ${Map}?Difficulty=${Difficulty}?GameLength=${Length}?Game=${Game}?Mutator=${Mutators}?${Args} configsubdir=instances/%i -webadminport=${PortWeb} -queryport=${PortQuery} -port=${PortGame}
|
||||
Restart=always
|
||||
|
||||
NoNewPrivileges=yes
|
||||
|
@ -6,20 +6,20 @@ Requires=network-online.target
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
||||
ExecStart=/usr/bin/kf2-srv --chat 'Scheduled server restart at 4:00 (MSK)'
|
||||
ExecStart=/usr/bin/kf2-srv --chat 'Server will restart after 30 minutes'
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv --chat '.'
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv --chat 'Server will restart after 30 minutes'
|
||||
ExecStart=/bin/sleep 15m
|
||||
|
||||
ExecStart=/usr/bin/kf2-srv --chat 'Server will restart after 15 minutes'
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv --chat 'Server will restart after 15 minutes'
|
||||
ExecStart=/bin/sleep 10m
|
||||
|
||||
ExecStart=/usr/bin/kf2-srv --chat 'Server will restart after 5 minutes'
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv --chat 'Server will restart after 5 minutes'
|
||||
ExecStart=/bin/sleep 5m
|
||||
|
||||
ExecStart=/usr/bin/kf2-srv --chat 'Server shutting down...'
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv --chat 'Server shutting down...'
|
||||
ExecStart=/bin/sleep 5s
|
||||
|
||||
ExecStart=/usr/bin/kf2-srv --update
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv --update
|
||||
|
||||
PrivateTmp=true
|
||||
PrivateDevices=true
|
||||
|
@ -12,7 +12,7 @@ StandardOutput=syslog
|
||||
StandardError=syslog
|
||||
SyslogIdentifier=kf2-srv/%i
|
||||
EnvironmentFile=/etc/kf2-srv/instances/%i/instance.conf
|
||||
ExecStart=/usr/games/kf2-srv/Binaries/Win64/KFGameSteamServer.bin.x86_64 ${Map}?Difficulty=${Difficulty}?GameLength=${Length}?Game=${Game}?Mutator=${Mutators}?${Args} configsubdir=instances/%i -webadminport=${PortWeb} -queryport=${PortQuery} -port=${PortGame}
|
||||
ExecStart=:DEFINE_PREFIX:/games/kf2-srv/Binaries/Win64/KFGameSteamServer.bin.x86_64 ${Map}?Difficulty=${Difficulty}?GameLength=${Length}?Game=${Game}?Mutator=${Mutators}?${Args} configsubdir=instances/%i -webadminport=${PortWeb} -queryport=${PortQuery} -port=${PortGame}
|
||||
Restart=always
|
||||
|
||||
NoNewPrivileges=yes
|
||||
|
Reference in New Issue
Block a user