scripts/start.sh aktualisiert
This commit is contained in:
@@ -30,10 +30,12 @@ term_handler() {
|
||||
KILLPID=$(pidof UE4Server-Linux-Shipping)
|
||||
elif [ -f ${SERVER_DIR}/Engine/Binaries/Linux/UnrealServer-Linux-Shipping ]; then
|
||||
KILLPID=$(pidof UnrealServer-Linux-Shipping)
|
||||
elif [ -f ${SERVER_DIR}/Engine/Binaries/Linux/FactoryServer-Linux-Shipping ]; then
|
||||
KILLPID=$(pidof FactoryServer-Linux-Shipping)
|
||||
fi
|
||||
kill -SIGINT $KILLPID
|
||||
tail --pid=$KILLPID -f 2>/dev/null
|
||||
exit 143;
|
||||
kill -SIGINT $KILLPID
|
||||
tail --pid=$KILLPID -f 2>/dev/null
|
||||
exit 143;
|
||||
}
|
||||
|
||||
trap 'kill ${!}; term_handler' SIGTERM
|
||||
|
Reference in New Issue
Block a user