Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
f24223a0b9 | |||
6bd74c851b | |||
bc4493d042 | |||
1f2a50b164 |
757
SOURCES/kf2-srv
757
SOURCES/kf2-srv
File diff suppressed because it is too large
Load Diff
@ -2,7 +2,21 @@
|
|||||||
Description=Check and Update Killing Floor 2 server
|
Description=Check and Update Killing Floor 2 server
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
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=/bin/sleep 15m
|
||||||
|
|
||||||
|
ExecStart=/usr/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=/bin/sleep 5m
|
||||||
|
|
||||||
|
ExecStart=/usr/bin/kf2-srv-beta --chat 'Server shutting down...'
|
||||||
|
ExecStart=/bin/sleep 5s
|
||||||
|
|
||||||
ExecStart=/usr/bin/kf2-srv-beta --update
|
ExecStart=/usr/bin/kf2-srv-beta --update
|
||||||
|
|
||||||
PrivateTmp=true
|
PrivateTmp=true
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Description=Check and Update killing Floor 2 beta job
|
Description=Check and Update killing Floor 2 beta job
|
||||||
|
|
||||||
[Timer]
|
[Timer]
|
||||||
OnCalendar=*-*-* 4:00:00
|
OnCalendar=Wed, 03:30
|
||||||
Unit=kf2-srv-beta-update.service
|
Unit=kf2-srv-beta-update.service
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
@ -8,7 +8,7 @@ Type=simple
|
|||||||
StandardOutput=null
|
StandardOutput=null
|
||||||
StandardError=null
|
StandardError=null
|
||||||
EnvironmentFile=/etc/kf2-srv/instances-beta/%i/main.conf
|
EnvironmentFile=/etc/kf2-srv/instances-beta/%i/main.conf
|
||||||
ExecStart=/usr/games/kf2-srv-beta/Binaries/Win64/KFGameSteamServer.bin.x86_64 $Args configsubdir=instances/%i $PortW $PortQ $PortG
|
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}
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
NoNewPrivileges=yes
|
NoNewPrivileges=yes
|
||||||
|
@ -2,7 +2,21 @@
|
|||||||
Description=Check and Update Killing Floor 2 server
|
Description=Check and Update Killing Floor 2 server
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
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=/bin/sleep 15m
|
||||||
|
|
||||||
|
ExecStart=/usr/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=/bin/sleep 5m
|
||||||
|
|
||||||
|
ExecStart=/usr/bin/kf2-srv --chat 'Server shutting down...'
|
||||||
|
ExecStart=/bin/sleep 5s
|
||||||
|
|
||||||
ExecStart=/usr/bin/kf2-srv --update
|
ExecStart=/usr/bin/kf2-srv --update
|
||||||
|
|
||||||
PrivateTmp=true
|
PrivateTmp=true
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Description=Check and Update killing Floor 2 job
|
Description=Check and Update killing Floor 2 job
|
||||||
|
|
||||||
[Timer]
|
[Timer]
|
||||||
OnCalendar=*-*-* 4:00:00
|
OnCalendar=Wed, 03:30
|
||||||
Unit=kf2-srv-update.service
|
Unit=kf2-srv-update.service
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
23
SOURCES/kf2-srv.conf
Normal file → Executable file
23
SOURCES/kf2-srv.conf
Normal file → Executable file
@ -1 +1,22 @@
|
|||||||
#BranchName="preview"
|
# Displays game difficulty
|
||||||
|
# You can rename them as you like
|
||||||
|
DiffNames=('Normal' 'Hard' 'Suicide' 'Hell')
|
||||||
|
|
||||||
|
# Displays the number of waves
|
||||||
|
# You can rename them as you like
|
||||||
|
WaveNames=('4' '7' '10')
|
||||||
|
|
||||||
|
# Add custom gamemodes to the end of the list, similar to what is already there:
|
||||||
|
ModeNames['KFGameContent.KFGameInfo_Survival']='Survival'
|
||||||
|
ModeNames['KFGameContent.KFGameInfo_WeeklySurvival']='Weekly'
|
||||||
|
ModeNames['KFGameContent.KFGameInfo_Endless']='Endless'
|
||||||
|
ModeNames['KFGameContent.KFGameInfo_Objective']='Objective'
|
||||||
|
ModeNames['KFGameContent.KFGameInfo_VersusSurvival']='Versus'
|
||||||
|
|
||||||
|
# Add mutators to the end of the list, similar to what is already there:
|
||||||
|
MutNames['ServerExtMut.ServerExtMut']='RPG'
|
||||||
|
|
||||||
|
# Bot default password
|
||||||
|
# To change the password for the bot, you must do this here and in WebAdmin.
|
||||||
|
# Otherwise, the bot will stop working and some actions cannot be done on running servers
|
||||||
|
ServerBotPassword=VerySecretBotPassword
|
||||||
|
@ -8,7 +8,7 @@ Type=simple
|
|||||||
StandardOutput=null
|
StandardOutput=null
|
||||||
StandardError=null
|
StandardError=null
|
||||||
EnvironmentFile=/etc/kf2-srv/instances/%i/main.conf
|
EnvironmentFile=/etc/kf2-srv/instances/%i/main.conf
|
||||||
ExecStart=/usr/games/kf2-srv/Binaries/Win64/KFGameSteamServer.bin.x86_64 $Args configsubdir=instances/%i $PortW $PortQ $PortG
|
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}
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
NoNewPrivileges=yes
|
NoNewPrivileges=yes
|
||||||
|
@ -1,29 +1,38 @@
|
|||||||
LANG=en_US.UTF-8
|
LANG=en_US.UTF-8
|
||||||
|
|
||||||
PortW="-webadminport=8080"
|
PortWeb=8080
|
||||||
PortQ="-queryport=27015"
|
PortQuery=27015
|
||||||
PortG="-port=7777"
|
PortGame=7777
|
||||||
|
|
||||||
|
# Default Map
|
||||||
|
Map=KF-Nuked
|
||||||
|
|
||||||
# First arg: map name
|
|
||||||
#
|
|
||||||
# Difficulty:
|
# Difficulty:
|
||||||
# Normal: 0
|
# Normal: 0
|
||||||
# Hard: 1
|
# Hard: 1
|
||||||
# Suicide: 2
|
# Suicide: 2
|
||||||
# Hell: 3
|
# Hell: 3
|
||||||
#
|
Difficulty=2
|
||||||
|
|
||||||
# Game:
|
# Game:
|
||||||
# Survival: KFGameContent.KFGameInfo_Survival
|
# Survival: KFGameContent.KFGameInfo_Survival
|
||||||
# WeeklyOutbreak: KFGameContent.KFGameInfo_WeeklySurvival
|
# WeeklyOutbreak: KFGameContent.KFGameInfo_WeeklySurvival
|
||||||
# Endless: KFGameContent.KFGameInfo_Endless
|
# Endless: KFGameContent.KFGameInfo_Endless
|
||||||
# Objective: KFGameContent.KFGameInfo_Objective
|
# Objective: KFGameContent.KFGameInfo_Objective
|
||||||
# Versus: KFGameContent.KFGameInfo_VersusSurvival
|
# Versus: KFGameContent.KFGameInfo_VersusSurvival
|
||||||
#
|
Game=KFGameContent.KFGameInfo_Endless
|
||||||
|
|
||||||
# GameLength:
|
# GameLength:
|
||||||
# 4 waves: 0
|
# 4 waves: 0
|
||||||
# 7 waves: 1
|
# 7 waves: 1
|
||||||
# 10 waves: 2
|
# 10 waves: 2
|
||||||
Args=kf-bioticslab?Difficulty=0?Game=KFGameContent.KFGameInfo_Survival?GameLength=2
|
Length=2
|
||||||
|
|
||||||
|
# Mutators
|
||||||
|
Mutators=
|
||||||
|
|
||||||
|
# Additional parameters
|
||||||
|
Args=
|
||||||
|
|
||||||
# Notes for yourself
|
# Notes for yourself
|
||||||
Description="Default description"
|
Comment=
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
%global steamuser steam
|
%global steamuser steam
|
||||||
|
|
||||||
Name: kf2-srv
|
Name: kf2-srv
|
||||||
Version: 0.7.0
|
Version: 0.10.0
|
||||||
Release: 1%{dist}
|
Release: 1%{dist}
|
||||||
Summary: Killing Floor 2 server
|
Summary: Killing Floor 2 server
|
||||||
Group: Amusements/Games
|
Group: Amusements/Games
|
||||||
@ -18,6 +18,7 @@ Source7: main.conf.template
|
|||||||
Source8: %{name}-beta@.service
|
Source8: %{name}-beta@.service
|
||||||
Source9: %{name}-beta-update.service
|
Source9: %{name}-beta-update.service
|
||||||
Source10: %{name}-beta-update.timer
|
Source10: %{name}-beta-update.timer
|
||||||
|
Source11: %{name}.conf
|
||||||
|
|
||||||
Requires: systemd >= 219
|
Requires: systemd >= 219
|
||||||
Requires: steamcmd
|
Requires: steamcmd
|
||||||
@ -31,6 +32,7 @@ Requires: util-linux
|
|||||||
Requires: sudo
|
Requires: sudo
|
||||||
Requires: psmisc
|
Requires: psmisc
|
||||||
Requires: gawk
|
Requires: gawk
|
||||||
|
Requires: multini >= 0.2.3
|
||||||
|
|
||||||
Provides: %{name}
|
Provides: %{name}
|
||||||
|
|
||||||
@ -49,6 +51,7 @@ install -m 755 -d %{buildroot}/%{_prefix}/lib/systemd/system
|
|||||||
install -m 755 -d %{buildroot}/%{_prefix}/lib/firewalld/services
|
install -m 755 -d %{buildroot}/%{_prefix}/lib/firewalld/services
|
||||||
install -m 755 -d %{buildroot}/%{_sysconfdir}/%{name}/instances
|
install -m 755 -d %{buildroot}/%{_sysconfdir}/%{name}/instances
|
||||||
install -m 755 -d %{buildroot}/%{_sysconfdir}/%{name}/instances-beta
|
install -m 755 -d %{buildroot}/%{_sysconfdir}/%{name}/instances-beta
|
||||||
|
install -m 755 -d %{buildroot}/%{_sysconfdir}/%{name}/mapcycles
|
||||||
install -m 644 -d %{buildroot}/%{_prefix}/games/%{name}
|
install -m 644 -d %{buildroot}/%{_prefix}/games/%{name}
|
||||||
install -m 644 -d %{buildroot}/%{_prefix}/games/%{name}-beta
|
install -m 644 -d %{buildroot}/%{_prefix}/games/%{name}-beta
|
||||||
|
|
||||||
@ -62,6 +65,7 @@ install -m 644 %{SOURCE7} %{buildroot}/%{_sysconfdir}/%{name}
|
|||||||
install -m 644 %{SOURCE8} %{buildroot}/%{_prefix}/lib/systemd/system
|
install -m 644 %{SOURCE8} %{buildroot}/%{_prefix}/lib/systemd/system
|
||||||
install -m 644 %{SOURCE9} %{buildroot}/%{_prefix}/lib/systemd/system
|
install -m 644 %{SOURCE9} %{buildroot}/%{_prefix}/lib/systemd/system
|
||||||
install -m 644 %{SOURCE10} %{buildroot}/%{_prefix}/lib/systemd/system
|
install -m 644 %{SOURCE10} %{buildroot}/%{_prefix}/lib/systemd/system
|
||||||
|
install -m 644 %{SOURCE11} %{buildroot}/%{_sysconfdir}/%{name}
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
@ -72,7 +76,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%attr(775,root,%{steamuser}) %dir %{_sysconfdir}/%{name}
|
%attr(775,root,%{steamuser}) %dir %{_sysconfdir}/%{name}
|
||||||
%attr(775,root,%{steamuser}) %dir %{_sysconfdir}/%{name}/instances
|
%attr(775,root,%{steamuser}) %dir %{_sysconfdir}/%{name}/instances
|
||||||
%attr(775,root,%{steamuser}) %dir %{_sysconfdir}/%{name}/instances-beta
|
%attr(775,root,%{steamuser}) %dir %{_sysconfdir}/%{name}/instances-beta
|
||||||
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/main.conf.template
|
%attr(775,root,%{steamuser}) %dir %{_sysconfdir}/%{name}/mapcycles
|
||||||
|
%attr(644,root,%{steamuser}) %config(noreplace) %{_sysconfdir}/%{name}/main.conf.template
|
||||||
|
%attr(640,root,%{steamuser}) %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
|
||||||
%attr(644,root,root) %config(noreplace) %{_prefix}/lib/firewalld/services/%{name}.xml
|
%attr(644,root,root) %config(noreplace) %{_prefix}/lib/firewalld/services/%{name}.xml
|
||||||
%attr(755,root,root) %{_bindir}/%{name}
|
%attr(755,root,root) %{_bindir}/%{name}
|
||||||
%attr(755,root,root) %{_bindir}/%{name}-beta
|
%attr(755,root,root) %{_bindir}/%{name}-beta
|
||||||
@ -89,6 +95,31 @@ if [[ $1 -eq 0 ]] ; then # Uninstall
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jun 22 2020 GenZmeY <genzmey@gmail.com> - 0.10.0-1
|
||||||
|
- separate mutators setting;
|
||||||
|
- mutator column in server list;
|
||||||
|
- chat notifications on restart for updates;
|
||||||
|
- unban on working servers;
|
||||||
|
- refactoring.
|
||||||
|
|
||||||
|
* Sun May 31 2020 GenZmeY <genzmey@gmail.com> - 0.9.1-1
|
||||||
|
- fix realtime -mrl with spaces;
|
||||||
|
- mapcycles directory.
|
||||||
|
|
||||||
|
* Wed May 27 2020 GenZmeY <genzmey@gmail.com> - 0.9.0-1
|
||||||
|
- new main.conf format;
|
||||||
|
- multiple WebAdmin and http auth by default;
|
||||||
|
- online actions;
|
||||||
|
- chat-bot;
|
||||||
|
- set password;
|
||||||
|
- refactoring.
|
||||||
|
|
||||||
|
* Mon Apr 27 2020 GenZmeY <genzmey@gmail.com> - 0.8.0-1
|
||||||
|
- use multini for ini edit;
|
||||||
|
- add mutators support;
|
||||||
|
- refactoring;
|
||||||
|
- returned "reboot-updates".
|
||||||
|
|
||||||
* Sat Mar 7 2020 GenZmeY <genzmey@gmail.com> - 0.7.0-1
|
* Sat Mar 7 2020 GenZmeY <genzmey@gmail.com> - 0.7.0-1
|
||||||
- dual versions support;
|
- dual versions support;
|
||||||
- check updates;
|
- check updates;
|
||||||
|
Reference in New Issue
Block a user