Skip to content

Commit

Permalink
changed pidof select, thanks for the tip from @thijsvanloef
Browse files Browse the repository at this point in the history
  • Loading branch information
jammsen committed Apr 5, 2024
1 parent eb74803 commit cfc072c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

## 2024-04-04

- Fixed rcon-spaces from @Callum027 (#251)
- Fixed rcon-spaces by @Callum027 (#251)
- Added new config options from new default-settings-file
- Bugfix - Change pidof selector to current name "PalServer-Linux-Shipping" by @thijsvanloef


## 2024-03-04
Expand Down
4 changes: 2 additions & 2 deletions includes/server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ function stop_server() {
if [[ -n $RCON_ENABLED ]] && [[ $RCON_ENABLED == "true" ]]; then
save_and_shutdown_server
fi
kill -SIGTERM "$(pidof PalServer-Linux-Test)"
tail --pid="$(pidof PalServer-Linux-Test)" -f 2>/dev/null
kill -SIGTERM "$(pidof PalServer-Linux-Shipping)"
tail --pid="$(pidof PalServer-Linux-Shipping)" -f 2>/dev/null
if [[ -n $WEBHOOK_ENABLED ]] && [[ $WEBHOOK_ENABLED == "true" ]]; then
send_stop_notification
fi
Expand Down
4 changes: 2 additions & 2 deletions scripts/restart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ function schedule_restart() {
if [[ -n $WEBHOOK_ENABLED ]] && [[ $WEBHOOK_ENABLED == "true" ]]; then
send_stop_notification
fi
kill -SIGTERM "$(pidof PalServer-Linux-Test)"
tail --pid="$(pidof PalServer-Linux-Test)" -f 2>/dev/null
kill -SIGTERM "$(pidof PalServer-Linux-Shipping)"
tail --pid="$(pidof PalServer-Linux-Shipping)" -f 2>/dev/null
kill -SIGTERM "${PLAYER_DETECTION_PID}"
ew ">>> Server stopped gracefully"
exit 143;
Expand Down

0 comments on commit cfc072c

Please sign in to comment.