fix: correct old kf2-srv execs

This commit is contained in:
GenZmeY 2020-08-08 03:47:28 +03:00
parent 5166eaa458
commit 227816e51f
3 changed files with 14 additions and 14 deletions

View File

@ -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

View File

@ -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

View File

@ -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