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 merge requests found
......@@ -28,10 +28,13 @@
set -ex
# Configuration
COND_SERVICES="nethist lcollect"
SERVICES="ucollect unbound"
if [ -e '/etc/init.d/nethist' ] ; then
SERVICES="$SERVICES nethist"
fi
for S in $COND_SERVICES ; do
if test -x "/etc/init.d/$S" && "/etc/init.d/$S" enabled ; then
SERVICES="$SERVICES $S"
fi
done
TEMPFILE=/tmp/watchdog.tmp.$$
trap 'rm "$TEMPFILE"' EXIT INT QUIT TERM
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment