"kill -O" doesn't exist, "kill -0" does!

This commit is contained in:
Jérémy Lecour 2019-11-12 14:49:16 +01:00 committed by Jérémy Lecour
parent da40afa99c
commit 832a219f0b

View file

@ -117,7 +117,7 @@ pick_server() {
if [ -e "${PIDFILE}" ]; then if [ -e "${PIDFILE}" ]; then
pid=$(cat "${PIDFILE}") pid=$(cat "${PIDFILE}")
# Does process still exist ? # Does process still exist ?
if kill -O ${pid} 2> /dev/null; then if kill -0 ${pid} 2> /dev/null; then
# Killing the childs of evobackup. # Killing the childs of evobackup.
for ppid in $(pgrep -P "${pid}"); do for ppid in $(pgrep -P "${pid}"); do
kill -9 "${ppid}"; kill -9 "${ppid}";