taskotron: improve messaging for imagefactory-kill-zombie

This commit is contained in:
Kamil Páral 2018-02-21 12:38:07 +01:00
parent a5d81b53bd
commit d661bac3a7

View file

@ -18,7 +18,7 @@ TIMEOUT=${1:-$DEFAULT_TIMEOUT}
# convert to seconds
TIMEOUT=$(( $TIMEOUT * 60 ))
while pgrep -f "$PROCESS_ID"; do
while true; do
# get PID of the oldest (pgrep -o) running matched process
PID=$(pgrep -o -f "$PROCESS_ID")
if [ -z "$PID" ]; then