last version of bash
This commit is contained in:
Executable
+13
@@ -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
|
||||
Executable
+6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user