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

Make sure the watchdog doesn't leave droppings

parent b24fd080
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,8 @@ set -ex
SERVICES="ucollect"
TEMPFILE=/tmp/watchdog.tmp.$$
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
......@@ -33,5 +35,3 @@ for SERVICE in $SERVICES ; do
fi
fi
done
rm "$TEMPFILE"
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