summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.net>2017-10-19 07:13:16 +0200
committerAndreas Unterkircher <unki@netshadow.net>2017-10-19 07:14:42 +0200
commitfe12d7b38f4fb3964233a25da8c04dc968cb4f3b (patch)
treed156d04643db3e71ed9366ebe9a627e36020cf5b
parent5152cf66b8e2d69a876718422052c1b7868e7a62 (diff)
downloadexilog-fe12d7b38f4fb3964233a25da8c04dc968cb4f3b.zip
exilog-fe12d7b38f4fb3964233a25da8c04dc968cb4f3b.tar.gz
exilog-fe12d7b38f4fb3964233a25da8c04dc968cb4f3b.tar.bz2
remove debian/exilog-agent.init
-rw-r--r--debian/changelog6
-rw-r--r--debian/exilog-agent.init91
-rwxr-xr-xdebian/rules3
3 files changed, 9 insertions, 91 deletions
diff --git a/debian/changelog b/debian/changelog
index ee2b87e..1cbb1d7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+exilog (0.5.1-4~unki.9) stretch; urgency=medium
+
+ * remove debian/exilog-agent.init
+
+ -- Andreas Unterkircher <unki@netshadow.net> Thu, 19 Oct 2017 07:13:20 +0200
+
exilog (0.5.1-4~unki.8) stretch; urgency=medium
* exilog-agent.service, add systemd service file" exilog-agent.service
diff --git a/debian/exilog-agent.init b/debian/exilog-agent.init
deleted file mode 100644
index b056b89..0000000
--- a/debian/exilog-agent.init
+++ /dev/null
@@ -1,91 +0,0 @@
-#! /bin/sh
-#
-# skeleton example file to build /etc/init.d/ scripts.
-# This file should be used to construct scripts for /etc/init.d.
-#
-# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
-# Modified for Debian
-# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
-#
-# Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl
-#
-
-PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
-DAEMON=/usr/sbin/exilog_agent.pl
-NAME=exilog_agent.pl
-DESC="exilog log monitoring agent"
-
-test -x $DAEMON || exit 0
-
-# Include exilog defaults if available
-if [ -f /etc/default/exilog-agent ] ; then
- . /etc/default/exilog-agent
-fi
-
-if [ ! -f /etc/exilog/exilog.conf ] ; then
- echo "create exilog.conf first!"
- 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
-
-set -e
-
-case "$1" in
- start)
- test ! -d /run/exilog && mkdir /run/exilog
- log_daemon_msg "Starting $DESC" $NAME
- start-stop-daemon \
- --start \
- --quiet --pidfile /run/exilog/agent.pid \
- --exec $DAEMON -- $DAEMON_OPTS
- log_end_msg $?
- ;;
- stop)
- log_daemon_msg "Stopping $DESC" $NAME
- start-stop-daemon \
- --stop \
- --oknodo \
- --quiet \
- --retry 5 \
- --pidfile /run/exilog/agent.pid
- log_end_msg $?
- ;;
- force-reload)
- #
- # If the "reload" option is implemented, move the "force-reload"
- # option to the "reload" entry above. If not, "force-reload" is
- # just the same as "restart" except that it does nothing if the
- # daemon isn't already running.
- # check wether $DAEMON is running. If so, restart
- start-stop-daemon \
- --stop \
- --test \
- --quiet \
- --pidfile \
- /run/exilog/agent.pid \
- && $0 restart \
- || exit 0
- ;;
- restart)
- log_daemon_msg "Restarting $DESC" $NAME
- start-stop-daemon --stop --oknodo --retry 5 --quiet --pidfile \
- /run/exilog/agent.pid
- sleep 1
- start-stop-daemon --start --quiet --pidfile \
- /run/exilog/agent.pid --exec $DAEMON -- $DAEMON_OPTS
- log_end_msg $?
- ;;
- *)
- N=/etc/init.d/$0
- echo "Usage: $N {start|stop|restart}" >&2
- exit 1
- ;;
-esac
-
-exit 0
diff --git a/debian/rules b/debian/rules
index 3c7ab96..61d05a0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,6 +12,9 @@ override_dh_auto_install:
dh_auto_install $@
cp conf/exilog.conf-example $(CURDIR)/debian/exilog-common/etc/exilog/exilog.conf
+override_dh_installinit:
+ dh_installinit -R
+
override_dh_install:
dh_install
chmod +x $(CURDIR)/debian/exilog-cgi/usr/lib/cgi-bin/exilog/exilog_cgi.pl