Skip to content

Commit

Permalink
change pidofs
Browse files Browse the repository at this point in the history
  • Loading branch information
thijsvanloef committed Apr 4, 2024
1 parent d4c9df0 commit 7693ff7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ term_handler() {

if ! shutdown_server; then
# Does not save
kill -SIGTERM "$(pidof PalServer-Linux-Test)"
kill -SIGTERM "$(pidof PalServer-Linux-Shipping)"
fi

tail --pid="$killpid" -f 2>/dev/null
Expand Down
2 changes: 1 addition & 1 deletion scripts/player_logging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ while ! nc -z 127.0.0.1 "${RCON_PORT}"; do
done

while true; do
server_pid=$(pidof PalServer-Linux-Test)
server_pid=$(pidof PalServer-Linux-Shipping)
if [ -n "${server_pid}" ]; then
# Player IDs are usally 9 or 10 digits however when a player joins for the first time for a given boot their ID is temporary 00000000 (8x zeros) while loading
# Player ID is also 00000000 (8x zeros) when in character creation
Expand Down
2 changes: 1 addition & 1 deletion scripts/restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ if [ -f "$BACKUP_FILE" ]; then
exit 1
fi

server_pid=$(pidof PalServer-Linux-Test)
server_pid=$(pidof PalServer-Linux-Shipping)
if [ -n "${server_pid}" ]; then
LogInfo "Waiting for Palworld to exit.."
tail --pid="${server_pid}" -f /dev/null
Expand Down

0 comments on commit 7693ff7

Please sign in to comment.