Commit 77942d40 authored by Razvan Becheriu's avatar Razvan Becheriu
Browse files

fixed if statement

parent d5bcaf96
......@@ -201,7 +201,9 @@ stop_server() {
else
log_info "Stopping ${binary_name}..."
if kill -${sig} ${_pid}; then
kill "-${sig}" "${_pid}"
retcode=$?
if [ $retcode -ne 0 ]; then
log_error "Stop failed, could not send signal ${sig} \
to process ${proc_name}, PID ${_pid}.\n"
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment