diff --git a/src/deployer.sh b/src/deployer.sh index 1e8f396..a6efad6 100755 --- a/src/deployer.sh +++ b/src/deployer.sh @@ -440,8 +440,8 @@ main() ( fail "Deployer process with pid='${pid}' is not running." \ "${err_deployer_process_not_running}" fi - if ! kill "${pid}" || kill -KILL "${pid}"; then - fail "Cannot kill deployer process." \ + if ! output="$(kill "${pid}" 2>&1 || kill -KILL "${pid}" 2>&1)"; then + fail "Cannot kill deployer process: ${output}." \ "${err_deployer_process_not_killed}" fi rm --force "${deployer_sock}"