[Pkg-nagios-changes] nsca/debian changelog, 1.3, 1.4 dirs, 1.1, 1.2 nsca.init, NONE, 1.1 rules, 1.1, 1.2

seanius at haydn.debian.org seanius at haydn.debian.org
Thu Nov 3 10:27:22 UTC 2005


Update of /cvsroot/pkg-nagios/nsca/debian
In directory haydn:/org/alioth.debian.org/chroot/home/users/seanius/tmp/cvs-serv30024/debian

Modified Files:
	changelog dirs rules 
Added Files:
	nsca.init 
Log Message:
include an init script for nsca... now starting to think about what'd need
to be done to move away from inetd entirely, if there aren't any complaints.


Index: changelog
===================================================================
RCS file: /cvsroot/pkg-nagios/nsca/debian/changelog,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- changelog	29 Oct 2005 12:10:30 -0000	1.3
+++ changelog	3 Nov 2005 10:27:18 -0000	1.4
@@ -1,3 +1,11 @@
+nsca (2.4-5) UNRELEASED; urgency=low
+
+  * Sean Finney:
+    - include a simple init script for those who would prefer to avoid
+      using inetd.
+
+ -- sean finney <seanius at debian.org>  Thu, 03 Nov 2005 11:25:35 +0100
+
 nsca (2.4-4) unstable; urgency=low
 
   * nsca is now part of the pkg-nagios alioth project.

Index: dirs
===================================================================
RCS file: /cvsroot/pkg-nagios/nsca/debian/dirs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- dirs	29 Oct 2005 11:38:05 -0000	1.1
+++ dirs	3 Nov 2005 10:27:18 -0000	1.2
@@ -1,3 +1,3 @@
 usr/bin
 usr/sbin
-etc
+etc/init.d

--- NEW FILE: nsca.init ---
#!/bin/sh

# simple debian init script for nsca
# by sean finney <seanius at debian.org>

# note that nsca does not have any way to support a pidfile, it seems,
# so there is very little error checking.  patches welcome.

DAEMON=/usr/sbin/nsca
NAME=nsca
DESC="Nagios Service Check Acceptor"
CONF=/etc/nsca.cfg
OPTS="--daemon -c $CONF"

if [ ! -x $DAEMON ]; then
	exit 0
fi

die(){
	echo $@
	exit 1
}

case "$1" in
start)
	echo -n "Starting $DESC: "
	$DAEMON $OPTS || die "ERROR: could not start $NAME."
	echo "$NAME."
;;
stop)
	echo -n "Stopping $DESC: "
	pkill -u nagios -fx "$DAEMON $OPTS" || die "ERROR: could not stop $NAME."
	echo "$NAME."
;;
restart)
	$0 stop
	$0 start
;;
esac

Index: rules
===================================================================
RCS file: /cvsroot/pkg-nagios/nsca/debian/rules,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- rules	29 Oct 2005 11:38:05 -0000	1.1
+++ rules	3 Nov 2005 10:27:18 -0000	1.2
@@ -34,6 +34,7 @@
 	cp src/nsca debian/tmp/usr/sbin
 	cp src/send_nsca debian/tmp/usr/sbin
 	cp send_nsca.cfg nsca.cfg debian/tmp/etc
+	cp debian/nsca.init debian/tmp/etc/init.d/nsca
 
 	# Remove obsolete stuff
 	rm -rf tmp/debian/usr/local




More information about the Pkg-nagios-changes mailing list