diff --git a/Rust/rustserver b/Rust/rustserver index 3a19bb140..6e153a9a9 100644 --- a/Rust/rustserver +++ b/Rust/rustserver @@ -118,7 +118,7 @@ filesdir="${rootdir}/serverfiles" ## Server Specific Directories systemdir="${filesdir}" executabledir="${filesdir}" -executable="LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`dirname $0`/RustDedicated_Data/Plugins/x86_64 ./RustDedicated" +executable="./RustDedicated" serveridentitydir="${systemdir}/server/${servicename}" servercfg="server.cfg" servercfgdefault="server.cfg" diff --git a/lgsm/functions/core_functions.sh b/lgsm/functions/core_functions.sh index f5ba4ce9e..b70cdeaee 100644 --- a/lgsm/functions/core_functions.sh +++ b/lgsm/functions/core_functions.sh @@ -362,6 +362,11 @@ functionfile="${FUNCNAME}" fn_fetch_function } +fix_rust.sh(){ +functionfile="${FUNCNAME}" +fn_fetch_function +} + # Info info_config.sh(){ diff --git a/lgsm/functions/fix.sh b/lgsm/functions/fix.sh index 5671ed627..85a65a814 100644 --- a/lgsm/functions/fix.sh +++ b/lgsm/functions/fix.sh @@ -45,6 +45,8 @@ if [ "${function_selfname}" != "command_install.sh" ]; then fix_ges.sh elif [ "${gamename}" == "Insurgency" ]; then fix_ins.sh + elif [ "${gamename}" == "Rust" ]; then + fix_rust.sh fi fi diff --git a/lgsm/functions/fix_rust.sh b/lgsm/functions/fix_rust.sh new file mode 100644 index 000000000..ec0b125d4 --- /dev/null +++ b/lgsm/functions/fix_rust.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# LGSM fix_rust.sh function +# Author: Daniel Gibbs +# Website: https://gameservermanagers.com +# Description: Resolves startup issue with Rust + +local commandname="FIX" +local commandaction="Fix" + +# Fixes: [Raknet] Server Shutting Down (Shutting Down) +export LD_LIBRARY_PATH="${systemdir}/RustDedicated_Data/Plugins/x86_64"