Skip to content
Snippets Groups Projects
Commit 274b9b48 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

Watchdog: be resilient to full ps

By using the busybox one unconditionally
parent bcc9fd25
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ trap 'rm "$TEMPFILE"' EXIT INT QUIT TERM
# Grap current list of processes, strip off the header and keep only the first and last column.
# Seems like our ps doesn't know how to specify format, so we have to get through the
# human-friendly crap
ps | tail -n+2 | sed -e 's/^ *\([0-9][0-9]*\)\( *[^ ]*\)\{3\} */\1 /'>"$TEMPFILE"
busybox ps | tail -n+2 | sed -e 's/^ *\([0-9][0-9]*\)\( *[^ ]*\)\{3\} */\1 /'>"$TEMPFILE"
for SERVICE in $SERVICES ; do
# Get the claimed PID of the service
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment