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