fix: correct old kf2-srv execs
This commit is contained in:
parent
5166eaa458
commit
227816e51f
@ -6,20 +6,20 @@ Requires=network-online.target
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv-beta --chat '.'
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv-beta --chat 'Server will restart after 30 minutes'
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv-beta instance chat '.'
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv-beta instance chat 'Server will restart after 30 minutes'
|
||||
ExecStart=/bin/sleep 15m
|
||||
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv-beta --chat 'Server will restart after 15 minutes'
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv-beta instance chat 'Server will restart after 15 minutes'
|
||||
ExecStart=/bin/sleep 10m
|
||||
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv-beta --chat 'Server will restart after 5 minutes'
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv-beta instance chat 'Server will restart after 5 minutes'
|
||||
ExecStart=/bin/sleep 5m
|
||||
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv-beta --chat 'Server shutting down...'
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv-beta instance chat 'Server shutting down...'
|
||||
ExecStart=/bin/sleep 5s
|
||||
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv-beta --update
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv-beta game update
|
||||
|
||||
PrivateTmp=true
|
||||
PrivateDevices=true
|
||||
|
@ -6,20 +6,20 @@ Requires=network-online.target
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv --chat '.'
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv --chat 'Server will restart after 30 minutes'
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv instance chat '.'
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv instance chat 'Server will restart after 30 minutes'
|
||||
ExecStart=/bin/sleep 15m
|
||||
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv --chat 'Server will restart after 15 minutes'
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv instance chat 'Server will restart after 15 minutes'
|
||||
ExecStart=/bin/sleep 10m
|
||||
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv --chat 'Server will restart after 5 minutes'
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv instance chat 'Server will restart after 5 minutes'
|
||||
ExecStart=/bin/sleep 5m
|
||||
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv --chat 'Server shutting down...'
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv instance chat 'Server shutting down...'
|
||||
ExecStart=/bin/sleep 5s
|
||||
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv --update
|
||||
ExecStart=:DEFINE_PREFIX:/bin/kf2-srv instance update
|
||||
|
||||
PrivateTmp=true
|
||||
PrivateDevices=true
|
||||
|
@ -83,8 +83,8 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%preun
|
||||
if [[ $1 -eq 0 ]] ; then # Uninstall
|
||||
%{_bindir}/%{name} --stop
|
||||
%{_bindir}/%{name} --disable
|
||||
%{_bindir}/%{name} instance stop
|
||||
%{_bindir}/%{name} instance disable
|
||||
rm -rf %{_prefix}/games/%{name}/*
|
||||
rm -rf %{_prefix}/games/%{name}-beta/*
|
||||
rm -rf %{_sysconfdir}/%{name}/instances/default
|
||||
|
Loading…
Reference in New Issue
Block a user