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

Let the watchdog watch for lcollect

If it is installed and enabled.
parent 0be13364
No related branches found
No related tags found
No related merge requests found
...@@ -28,10 +28,13 @@ ...@@ -28,10 +28,13 @@
set -ex set -ex
# Configuration # Configuration
COND_SERVICES="nethist lcollect"
SERVICES="ucollect unbound" SERVICES="ucollect unbound"
if [ -e '/etc/init.d/nethist' ] ; then for S in $COND_SERVICES ; do
SERVICES="$SERVICES nethist" if test -x "/etc/init.d/$S" && "/etc/init.d/$S" enabled ; then
fi SERVICES="$SERVICES $S"
fi
done
TEMPFILE=/tmp/watchdog.tmp.$$ TEMPFILE=/tmp/watchdog.tmp.$$
trap 'rm "$TEMPFILE"' EXIT INT QUIT TERM trap 'rm "$TEMPFILE"' EXIT INT QUIT TERM
......
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