Skip to content

Commit

Permalink
fix(term_handler): select oldest proccess id
Browse files Browse the repository at this point in the history
  • Loading branch information
joaop221 committed Aug 25, 2024
1 parent 05f343d commit 2292b32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/home/steam/init-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fi
term_handler() {
echo "Shutting down Server"

PID=$(pgrep -f "wine64 $server/VRisingServer.exe")
PID=$(pgrep -of "/usr/local/bin/wine64 $server/VRisingServer.exe")
if [[ -z $PID ]]; then
echo "Could not find VRisingServer.exe pid. Assuming server is dead..."
else
Expand Down

0 comments on commit 2292b32

Please sign in to comment.