[Dev] Add some logs in deployer stop
This commit is contained in:
parent
4af7c48a52
commit
c6373af98c
|
@ -436,6 +436,9 @@ main() (
|
||||||
fi
|
fi
|
||||||
pid="$(cat "${deployer_pid}")"
|
pid="$(cat "${deployer_pid}")"
|
||||||
rm --force "${deployer_pid}"
|
rm --force "${deployer_pid}"
|
||||||
|
|
||||||
|
# Kill deployer process.
|
||||||
|
log_info "Kill deployer process with pid '${pid}'."
|
||||||
if ! ps -p "${pid}" >/dev/null; then
|
if ! ps -p "${pid}" >/dev/null; 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}"
|
||||||
|
@ -444,6 +447,9 @@ main() (
|
||||||
fail "Cannot kill deployer process: ${output}." \
|
fail "Cannot kill deployer process: ${output}." \
|
||||||
"${err_deployer_process_not_killed}"
|
"${err_deployer_process_not_killed}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Remove deployer sock file.
|
||||||
|
log_info "Remove deployer sock at '${deployer_sock}'."
|
||||||
rm --force "${deployer_sock}"
|
rm --force "${deployer_sock}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in New Issue