[Dev] Remove pid file in deployer stop

This commit is contained in:
samuel 2023-05-04 01:24:37 +02:00
parent 5f73a1d0ed
commit e31ef119eb
1 changed files with 1 additions and 0 deletions

View File

@ -446,6 +446,7 @@ main() (
"${err_deployer_pid_not_readable}" "${err_deployer_pid_not_readable}"
fi fi
pid="$(cat "${deployer_pid}")" pid="$(cat "${deployer_pid}")"
rm --force "${deployer_pid}"
if ! ps -p "${pid}"; then if ! ps -p "${pid}"; then
fail "Deployer process with pid='${pid}' is not running." \ fail "Deployer process with pid='${pid}' is not running." \
"${err_deployer_process_not_running}" "${err_deployer_process_not_running}"