Report running PIDs.
This commit is contained in:
parent
1aed6cb1f2
commit
79f8d15aeb
|
@ -9,6 +9,8 @@ echo "# Checking update status"
|
|||
if ps u -C global_update.sh > /dev/null; then
|
||||
NUM=`ps u -C global_update.sh | tail -n +2 | wc -l`
|
||||
echo "* $NUM instances of global_update.sh still running (WARNING)"
|
||||
PIDS=`ps u -C global_update.sh | tail -n +2 | awk '{print $2}' | xargs`
|
||||
echo " Running PIDs: $PIDS"
|
||||
else
|
||||
echo "* global_update.sh not running"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue