last version of bash

This commit is contained in:
Mathew Guest 2020-01-15 17:54:43 -07:00
parent 2bbeda681b
commit b21506b0d5
12 changed files with 166 additions and 16 deletions

@ -6,7 +6,7 @@ Paths=../../../UnrealTournament/Plugins/ContentOnly/Content
[/Script/UnrealTournament.UTGameEngine]
bFirstRun=False
RconPassword=Hidden
RconPassword=<hidden>
[/Script/OnlineSubsystemUtils.IpNetDriver]
NetServerMaxTickRate=96

@ -1,15 +1,15 @@
[/Script/UnrealTournament.UTLobbyGameMode]
LobbyPassword=
AutoLaunchGameMode=
AutoLaunchGameOptions=
AutoLaunchMap=
LobbyPassword = ""
AutoLaunchGameMode = ""
AutoLaunchGameOptions = ""
AutoLaunchMap = ""
MaxPlayersInLobby = 75
StartingInstancePort = 8001
InstancePortStep = 1
MaxInstances = 6
[/Script/UnrealTournament.UTBaseGameMode]
ServerInstanceID=Hidden
ServerInstanceID = 01648766060A091700250157183F1418
[/Script/UnrealTournament.UTGameMode]
MapVoteTime = 60

13
instance/start-server.sh Executable file

@ -0,0 +1,13 @@
#!/bin/bash
UT4_DIR="/home/ut4/serv"
cd "$UT4_DIR"/LinuxServer/Engine/Binaries/Linux
chmod 770 UE4Server-Linux-Shipping
# chmod 770 UE4Server-Linux-Test
while true ; do
cd "$UT4_DIR"/LinuxServer/Engine/Binaries/Linux
chmod 770 UE4Server-Linux-Shipping
nohup ./UE4Server-Linux-Shipping UnrealTournament UT-Entry?Game=Lobby -log | tee /home/ut4/ut4-server.log
done
cd - >/dev/null

6
instance/stop-server.sh Executable file

@ -0,0 +1,6 @@
#!/bin/bash
pkill -SIGINT -f UE4Server-Linux-Shipping
pkill start-server.sh
pkill -SIGINT -f UE4Server-Linux-Shipping

@ -0,0 +1,18 @@
[Unit]
Description=Unreal Tournament 4 Server
After=syslog.target network.target
[Service]
Type=simple
ExecStart=/home/ut4/serv/start-server.sh
ExecReload=/home/ut4/serv/stop-server.sh && sleep 10 && /home/ut4/serv/start-server.sh
ExecStop=/home/ut4/serv/stop-server.sh
Restart=no
RuntimeDirectory=/home/ut4/serv
User=ut4
Group=ut4
KillSignal=SIGQUIT
[Install]
WantedBy=multi-user.target

@ -0,0 +1,14 @@
[Core.System]
Paths=../../../Engine/Content
Paths=%GAMEDIR%Content
Paths=../../../UnrealTournament/Plugins/SampleGameMode/Content
Paths=../../../UnrealTournament/Plugins/ContentOnly/Content
[/Script/UnrealTournament.UTGameEngine]
bFirstRun=False
RconPassword=DivideByZero
[/Script/OnlineSubsystemUtils.IpNetDriver]
NetServerMaxTickRate=96
LanServerMaxTickRate=96

@ -0,0 +1,22 @@
[/Script/UnrealTournament.UTLobbyGameMode]
LobbyPassword=
AutoLaunchGameMode=
AutoLaunchGameOptions=
AutoLaunchMap=
MaxPlayersInLobby=75
StartingInstancePort=8001
InstancePortStep=1
MaxInstances=6
[/Script/UnrealTournament.UTBaseGameMode]
ServerInstanceID=01648766060A091700250157183F1418
[/Script/UnrealTournament.UTGameMode]
MapVoteTime=60
bRecordReplays=true
bHandleDedicatedServerReplays=true
[/Script/UnrealTournament.UTGameState]
ServerName=Warehouse Party (Dallas)
ServerMOTD=<UT.Font.NormalText.Medium>Elimination, Instagib, BunnyTrack, and Duel</>\n<UT.Font.NormalText.Small.Bold>Big THANK YOU to all the UT4 content creators!!</>\n<UT.Font.NormalText.Small.Bold>ProWeapons, UT+, Instagib mods, and more!</>\n\nHosted in Dallas, Texas (Provider=Linode.com)\nAdmin: zavage.ut4@gmail.com\n\nConsole Commands:\nmutate hitsounds\nmutate teamskins\nmutate weaponskins\n\nDIY simple, self-hosted UT4 Server @ zavage.net/ut4
ServerDescription=Silky-smooth Unreal Tournament

@ -0,0 +1,14 @@
[Core.System]
Paths=../../../Engine/Content
Paths=%GAMEDIR%Content
Paths=../../../UnrealTournament/Plugins/SampleGameMode/Content
Paths=../../../UnrealTournament/Plugins/ContentOnly/Content
[/Script/UnrealTournament.UTGameEngine]
bFirstRun=False
RconPassword=<hidden>
[/Script/OnlineSubsystemUtils.IpNetDriver]
NetServerMaxTickRate=96
LanServerMaxTickRate=96

@ -0,0 +1,23 @@
[/Script/UnrealTournament.UTLobbyGameMode]
LobbyPassword=
AutoLaunchGameMode=
AutoLaunchGameOptions=
AutoLaunchMap=
MaxPlayersInLobby=75
StartingInstancePort=8001
InstancePortStep=1
MaxInstances=6
[/Script/UnrealTournament.UTBaseGameMode]
ServerInstanceID=0162010804030B08002A00F9058B4E93
[/Script/UnrealTournament.UTGameMode]
MapVoteTime=60
bRecordReplays=true
bHandleDedicatedServerReplays=true
[/Script/UnrealTournament.UTGameState]
ServerName=Warehouse Party (Fremont)
ServerMOTD=<UT.Font.NormalText.Medium>Elimination, Instagib, BunnyTrack, and Duel</>\n<UT.Font.NormalText.Small.Bold>Big THANK YOU to all the UT4 content creators!!</>\n<UT.Font.NormalText.Small.Bold>ProWeapons, UT+, Instagib mods, and more!</>\n\nHosted in Fremont, CA (Provider=Linode.com)\nAdmin: zavage.ut4@gmail.com\n\nConsole Commands:\nmutate hitsounds\nmutate teamskins\nmutate weaponskins\n\nDIY simple, self-hosted UT4 Server @ zavage.net/ut4
ServerDescription=Silky-smooth Unreal Tournament

@ -0,0 +1,14 @@
[Core.System]
Paths=../../../Engine/Content
Paths=%GAMEDIR%Content
Paths=../../../UnrealTournament/Plugins/SampleGameMode/Content
Paths=../../../UnrealTournament/Plugins/ContentOnly/Content
[/Script/UnrealTournament.UTGameEngine]
bFirstRun=False
RconPassword=<hidden>
[/Script/OnlineSubsystemUtils.IpNetDriver]
NetServerMaxTickRate=96
LanServerMaxTickRate=96

@ -0,0 +1,23 @@
[/Script/UnrealTournament.UTLobbyGameMode]
LobbyPassword=
AutoLaunchGameMode=
AutoLaunchGameOptions=
AutoLaunchMap=
MaxPlayersInLobby=75
StartingInstancePort=8001
InstancePortStep=1
MaxInstances=6
[/Script/UnrealTournament.UTBaseGameMode]
ServerInstanceID=016273D90C031407001A020B3A2A7C79
[/Script/UnrealTournament.UTGameMode]
MapVoteTime=60
bRecordReplays=true
bHandleDedicatedServerReplays=true
[/Script/UnrealTournament.UTGameState]
ServerName=Warehouse Party (Newark)
ServerMOTD=<UT.Font.NormalText.Medium>Elimination, Instagib, BunnyTrack, and Duel</>\n<UT.Font.NormalText.Small.Bold>Big THANK YOU to all the UT4 content creators!!</>\n<UT.Font.NormalText.Small.Bold>~-.-* Which to keep: Newark, NJ or Fremont, CA? *-.-~</>\n\nHosted in Newark, New Jersey (Provider=Linode.com)\nAdmin: zavage.ut4@gmail.com\n\nConsole Commands:\nmutate hitsounds\nmutate teamskins\nmutate weaponskins\n\nDIY simple, self-hosted UT4 Server @ zavage.net/ut4
ServerDescription=Email zavage.ut4@gmail.com with requests

@ -506,6 +506,9 @@ upload_server()
rsync -avzp "$PROJECT_DIR"/ut4-server-ctl.sh "$REMOTE_GAME_HOST":"$REMOTE_GAME_DIR"
scp "$PROJECT_DIR"/instance/ut4-server.service "$REMOTE_GAME_HOST":/etc/systemd/system/
ssh "$REMOTE_GAME_HOST" chown ut4.ut4 "$REMOTE_GAME_DIR" -R
)
}