Added checking process strings into check_pid script

This commit is contained in:
2024-12-20 13:58:46 +01:00
parent 88f3ff3beb
commit 97d886c91a

View File

@@ -18,7 +18,7 @@ if [ "$PID" != "" ]; then
debug "BACKGROUND PID: $PID"
#wait $PID
while pwdx $PID > /dev/null; do
while pwdx $PID | grep -vE 'No such process' > /dev/null; do
debug "RUNNING PROCESS: $TASK - PID: $PID"
sleep 2
done