diff options
author | Andreas Unterkircher <unki@srv-vie-puppet.vie.mm-karton.com> | 2008-11-29 13:34:03 +0100 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.net> | 2017-10-19 06:43:47 +0200 |
commit | 8aebc7d989553f5ac217434f8d54c073bbb186bf (patch) | |
tree | 3bdfe1b7ab9975bf7d3027ff820337e89dc33f14 | |
parent | d236ebe95ce04abde533f379fd2fe4f11c673708 (diff) | |
download | exilog-8aebc7d989553f5ac217434f8d54c073bbb186bf.zip exilog-8aebc7d989553f5ac217434f8d54c073bbb186bf.tar.gz exilog-8aebc7d989553f5ac217434f8d54c073bbb186bf.tar.bz2 |
exilog init.d script
Signed-off-by: Andreas Unterkircher <unki@srv-vie-puppet.vie.mm-karton.com>
-rw-r--r-- | debian/exilog.init (renamed from debian/init.d.ex) | 29 | ||||
-rwxr-xr-x | debian/rules | 1 |
2 files changed, 9 insertions, 21 deletions
diff --git a/debian/init.d.ex b/debian/exilog.init index d79aa4d..532dac0 100644 --- a/debian/init.d.ex +++ b/debian/exilog.init @@ -11,9 +11,9 @@ # PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin -DAEMON=/usr/sbin/exilog -NAME=exilog -DESC=exilog +DAEMON=/usr/sbin/exilog_agent.pl +NAME=exilog_agent.pl +DESC="exilog log monitoring agent" test -x $DAEMON || exit 0 @@ -27,28 +27,15 @@ set -e case "$1" in start) echo -n "Starting $DESC: " - start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \ + start-stop-daemon --start --quiet --pidfile /var/run/exilog/agent.pid \ --exec $DAEMON -- $DAEMON_OPTS echo "$NAME." ;; stop) echo -n "Stopping $DESC: " - start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \ - --exec $DAEMON + start-stop-daemon --stop --quiet --pidfile /var/run/exilog/agent.pid echo "$NAME." ;; - #reload) - # - # If the daemon can reload its config files on the fly - # for example by sending it SIGHUP, do it here. - # - # If the daemon responds to changes in its config file - # directly anyway, make this a do-nothing entry. - # - # echo "Reloading $DESC configuration files." - # start-stop-daemon --stop --signal 1 --quiet --pidfile \ - # /var/run/$NAME.pid --exec $DAEMON - #;; force-reload) # # If the "reload" option is implemented, move the "force-reload" @@ -64,16 +51,16 @@ case "$1" in restart) echo -n "Restarting $DESC: " start-stop-daemon --stop --quiet --pidfile \ - /var/run/$NAME.pid --exec $DAEMON + /var/run/exilog/agent.pid sleep 1 start-stop-daemon --start --quiet --pidfile \ - /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS + /var/run/exilog/agent.pid --exec $DAEMON -- $DAEMON_OPTS echo "$NAME." ;; *) N=/etc/init.d/$NAME # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 - echo "Usage: $N {start|stop|restart|force-reload}" >&2 + echo "Usage: $N {start|stop|restart}" >&2 exit 1 ;; esac diff --git a/debian/rules b/debian/rules index 9355645..55bad60 100755 --- a/debian/rules +++ b/debian/rules @@ -74,6 +74,7 @@ binary-indep: build install dh_installchangelogs dh_installdocs dh_installexamples + dh_installinit dh_link dh_compress dh_fixperms |