summaryrefslogtreecommitdiffstats
path: root/debian/exilog.init
diff options
context:
space:
mode:
Diffstat (limited to 'debian/exilog.init')
-rw-r--r--debian/exilog.init8
1 files changed, 4 insertions, 4 deletions
diff --git a/debian/exilog.init b/debian/exilog.init
index 2a89366..17cd0bb 100644
--- a/debian/exilog.init
+++ b/debian/exilog.init
@@ -27,6 +27,10 @@ if [ ! -f /etc/exilog/exilog.conf ] ; then
exit 0
fi
+# should we handle the agent at all?
+test -z $START_AGENT && exit 0
+test "$START_AGENT" != "Yes" && exit 0
+
# source lsb init-functions
. /lib/lsb/init-functions
@@ -34,10 +38,6 @@ set -e
case "$1" in
start)
- # should we start a daemon at all?
- test -z $START_AGENT && exit 0
- test "$START_AGENT" != "Yes" && exit 0
-
log_daemon_msg "Starting $DESC" $NAME
start-stop-daemon --start --quiet --pidfile /var/run/exilog/agent.pid \
--exec $DAEMON -- $DAEMON_OPTS