Release 10.0.0 #100
|
@ -124,9 +124,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 ?
|
||||||
# ignore check because multiple processes might exist
|
if kill -0 "${pid}" 2> /dev/null; then
|
||||||
# shellcheck disable=SC2086
|
|
||||||
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}";
|
||||||
|
|
Loading…
Reference in a new issue