summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8333d3d)
raw | patch | inline | side by side (parent: 8333d3d)
author | Sebastian Harl <sh@tokkee.org> | |
Thu, 3 Mar 2011 14:05:17 +0000 (15:05 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Thu, 3 Mar 2011 14:05:17 +0000 (15:05 +0100) |
These files may be used to enable/disable the daemon and specify command line
arguments to be passed to the daemon.
arguments to be passed to the daemon.
debian/nagixsc.nagixsc_conf2http.default | [new file with mode: 0644] | patch | blob |
debian/nagixsc.nagixsc_conf2http.init | patch | blob | history | |
debian/nagixsc.nagixsc_http2nagios.default | [new file with mode: 0644] | patch | blob |
debian/nagixsc.nagixsc_http2nagios.init | patch | blob | history |
diff --git a/debian/nagixsc.nagixsc_conf2http.default b/debian/nagixsc.nagixsc_conf2http.default
--- /dev/null
@@ -0,0 +1,9 @@
+# Default settings for Nag(ix)SC's nagixsc_conf2http daemon.
+
+# Should nagixsc_conf2http be started? ("yes" to enable)
+RUN="no"
+
+# Command line arguments that are passed to the daemon.
+# ('--daemon' is added automatically)
+DAEMON_ARGS="-c /etc/nagixsc/conf2http.cfg"
+
index 29d5ad4e39e6eebedfbc26e5e705193754ef0190..7f166b0c1921208ee06bc6c007ab73b589f80b77 100755 (executable)
NAME=nagixsc_conf2http
DAEMONPATH=/usr/sbin
DAEMON=$DAEMONPATH/$NAME
-DAEMON_ARGS="-c /etc/nagixsc/conf2http.cfg --daemon"
+DAEMON_ARGS="-c /etc/nagixsc/conf2http.cfg"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
[ -x "$DAEMON" ] || exit 0
# Read configuration variable file if it is present
-# [ -r /etc/default/$NAME ] && . /etc/default/$NAME
+[ -r /etc/default/$NAME ] && . /etc/default/$NAME
# Load the VERBOSE setting and other rcS variables
[ -f /etc/default/rcS ] && . /etc/default/rcS
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
. /lib/lsb/init-functions
+# Check if RUN is set to "yes".
+if [ "x$RUN" != "xyes" ] ; then
+ echo "$NAME has been disabled in /etc/default/$NAME."
+ exit 0
+fi
+
+DAEMON_ARGS="$DAEMON_ARGS --daemon"
+
is_running()
{
[ -f "$PIDFILE" ] || return 1
diff --git a/debian/nagixsc.nagixsc_http2nagios.default b/debian/nagixsc.nagixsc_http2nagios.default
--- /dev/null
@@ -0,0 +1,9 @@
+# Default settings for Nag(ix)SC's nagixsc_http2nagios daemon.
+
+# Should nagixsc_http2nagios be started? ("yes" to enable)
+RUN="no"
+
+# Command line arguments that are passed to the daemon.
+# ('--daemon' is added automatically)
+DAEMON_ARGS="-c /etc/nagixsc/http2nagios.cfg"
+
index ee21ca131c4ca4603d0691ed7dc49a363590e5c1..7898122cf130edc8a7a17e99c6a1d8963fc21ddc 100755 (executable)
NAME=nagixsc_http2nagios
DAEMONPATH=/usr/sbin
DAEMON=$DAEMONPATH/$NAME
-DAEMON_ARGS="-c /etc/nagixsc/http2nagios.cfg --daemon"
+DAEMON_ARGS="-c /etc/nagixsc/http2nagios.cfg"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
[ -x "$DAEMON" ] || exit 0
# Read configuration variable file if it is present
-# [ -r /etc/default/$NAME ] && . /etc/default/$NAME
+[ -r /etc/default/$NAME ] && . /etc/default/$NAME
# Load the VERBOSE setting and other rcS variables
[ -f /etc/default/rcS ] && . /etc/default/rcS
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
. /lib/lsb/init-functions
+# Check if RUN is set to "yes".
+if [ "x$RUN" != "xyes" ] ; then
+ echo "$NAME has been disabled in /etc/default/$NAME."
+ exit 0
+fi
+
+DAEMON_ARGS="$DAEMON_ARGS --daemon"
+
is_running()
{
[ -f "$PIDFILE" ] || return 1