path: finit_4.14-1/contrib/procmon.sh while : do PROCESS_PIDS=`/bin/pidof $1` if [ "$PROCESS_PIDS.X" != ".X" ]; then break path: finit_4.14-1/test/unexpected-restart.sh assert_status C "running" newpid=$(pidof C) # shellcheck disable=SC2086 assert "C was not restarted" $oldpid -eq $newpid path: finit_4.14-1/test/unexpected-restart.sh retry 'assert_status allup "done"' 10 1 assert_status C "running" oldpid=$(pidof C) sep "pre-reload status" path: finit_4.14-1/test/unexpected-restart.sh } pidof() { texec initctl -j status "$1" | jq .pid