mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-11 18:48:26 +00:00
Fix doRun writing the wrong PID to the run file
This commit is contained in:
parent
7efbbd3fdf
commit
fac21dd9a8
@ -656,7 +656,8 @@ doRun() {
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "$$" >"${arkserverroot}/${arkmanagerpidfile}"
|
||||
# $$ returns the main process, $BASHPID returns the current process
|
||||
echo "$BASHPID" >"${arkserverroot}/${arkmanagerpidfile}"
|
||||
|
||||
if [ -f "${arkserverroot}/.ark-update.lock" ]; then
|
||||
local updatepid="$(<"${arkserverroot}/.ark-update.lock")"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user