diff options
author | Andreas Unterkircher <unki@srv-vie-puppet.vie.mm-karton.com> | 2008-11-29 17:14:44 +0100 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.net> | 2017-10-19 06:43:47 +0200 |
commit | 0882b7bd5cb140d9dc3388285057f944a38cba49 (patch) | |
tree | 267bccf8a37ba5b3b5931f86cb71cae76f9d8873 | |
parent | 9420ec756f695affce701978d465bde4ee8f9d14 (diff) | |
download | exilog-0882b7bd5cb140d9dc3388285057f944a38cba49.zip exilog-0882b7bd5cb140d9dc3388285057f944a38cba49.tar.gz exilog-0882b7bd5cb140d9dc3388285057f944a38cba49.tar.bz2 |
do not freak out if no daemon is running and agents are disabled
Signed-off-by: Andreas Unterkircher <unki@srv-vie-puppet.vie.mm-karton.com>
-rw-r--r-- | debian/changelog | 6 | ||||
-rw-r--r-- | debian/exilog.init | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/debian/changelog b/debian/changelog index 92b7bfb..fc48754 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +exilog (0.5-9) etch; urgency=medium + + * do not freak out if no daemon is running and agents are disabled + + -- Andreas Unterkircher <unki@mm-karton.com> Sat, 29 Nov 2008 17:14:53 +0100 + exilog (0.5-8) etch; urgency=medium * add cron job 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 |