diff --git a/systems/game-servers/modules/tgs/EventScripts/tg/DreamDaemonLaunch.sh b/systems/game-servers/modules/tgs/EventScripts/tg/DreamDaemonLaunch.sh new file mode 100755 index 0000000..ad6b445 --- /dev/null +++ b/systems/game-servers/modules/tgs/EventScripts/tg/DreamDaemonLaunch.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +timeout 60 strace -p $1 diff --git a/systems/game-servers/modules/tgs/EventScripts/tg/PreCompile.sh b/systems/game-servers/modules/tgs/EventScripts/tg/PreCompile.sh index 353bcba..e8ccda2 100755 --- a/systems/game-servers/modules/tgs/EventScripts/tg/PreCompile.sh +++ b/systems/game-servers/modules/tgs/EventScripts/tg/PreCompile.sh @@ -48,10 +48,6 @@ git checkout "$DREAMLUAU_VERSION" >/dev/null echo "dreamluau: building" env LIBCLANG_PATH="$(find /nix/store -name *-clang-*-lib)/lib" cargo build --ignore-rust-version --release --target=i686-unknown-linux-gnu cp target/i686-unknown-linux-gnu/release/libdreamluau.so "$1/libdreamluau.so" - -# EMERGENCY FIX, SOMETHING IS WRONG WITH THE ABOVE -cp "${TGS_INSTANCE_ROOT}/Configuration/EventScripts.old/libdreamluau.so" "$1/libdreamluau.so" - cd "$work_directory" echo "dreamluau: deployment finish" diff --git a/systems/game-servers/modules/tgs/default.nix b/systems/game-servers/modules/tgs/default.nix index 055e930..11732f2 100644 --- a/systems/game-servers/modules/tgs/default.nix +++ b/systems/game-servers/modules/tgs/default.nix @@ -13,6 +13,11 @@ # `/Configuration/EventScripts` is symlinked to these directories environment.etc = { #TG + "tgs-EventScripts.d/tg/DreamDaemonLaunch.sh" = { + text = (builtins.readFile ./EventScripts/tg/DreamDaemonLaunch.sh); + group = "tgstation-server"; + mode = "0755"; + }; "tgs-EventScripts.d/tg/DreamDaemonPreLaunch.sh" = { text = (builtins.readFile ./EventScripts/tg/DreamDaemonPreLaunch.sh); group = "tgstation-server"; @@ -136,6 +141,7 @@ rclone yt-dlp # For Internet Sounds lua # Lua Support + strace ] ); };