From e03ae34d2b05a15ac10cdc0baf699b7584e3f2d0 Mon Sep 17 00:00:00 2001 From: StealthCT Date: Fri, 9 Jun 2023 14:26:59 +0100 Subject: [PATCH] Use FactoryServer.sh for daemon execution (#185) FactoryServer.sh sets up a few environment variables and provides the path to the server binary for launching Satisfactory Dedicated server. With the migration to UE5 imminent for the experimental channel, this should handle changes to the game files that may include a new path to launching the server. --- run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/run.sh b/run.sh index 67d0fb9..c093b6f 100755 --- a/run.sh +++ b/run.sh @@ -145,11 +145,11 @@ rm -rf "$GAMESAVESDIR" ln -sf "/config/saved" "$GAMESAVESDIR" cp /home/steam/*.ini "${GAMECONFIGDIR}/Config/LinuxServer/" -if [ ! -f "/config/gamefiles/Engine/Binaries/Linux/UE4Server-Linux-Shipping" ]; then - printf "Game binary is missing.\\n" +if [ ! -f "/config/gamefiles/FactoryServer.sh" ]; then + printf "FactoryServer launch script is missing.\\n" exit 1 fi cd /config/gamefiles || exit 1 -exec ./Engine/Binaries/Linux/UE4Server-Linux-Shipping FactoryGame -log -NoSteamClient -unattended ?listen -Port="$SERVERGAMEPORT" -BeaconPort="$SERVERBEACONPORT" -ServerQueryPort="$SERVERQUERYPORT" -multihome="$SERVERIP" "$@" +exec ./FactoryServer.sh -log -NoSteamClient -unattended ?listen -Port="$SERVERGAMEPORT" -BeaconPort="$SERVERBEACONPORT" -ServerQueryPort="$SERVERQUERYPORT" -multihome="$SERVERIP" "$@"