[Pkg-nagios-changes] [pkg-nsca-ng] 01/01: deprecate default file

Alexander Wirt formorer at debian.org
Fri Oct 17 12:48:58 UTC 2014


This is an automated email from the git hooks/post-receive script.

formorer pushed a commit to branch master
in repository pkg-nsca-ng.

commit 5d6f4c1327d2adc0c793e94556d58c4dfbb4a161
Author: Alexander Wirt <formorer at debian.org>
Date:   Fri Oct 17 14:48:46 2014 +0200

    deprecate default file
---
 debian/nsca-ng-server.init        | 5 -----
 debian/nsca-ng-server.maintscript | 1 +
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/debian/nsca-ng-server.init b/debian/nsca-ng-server.init
index c863156..1134bb5 100644
--- a/debian/nsca-ng-server.init
+++ b/debian/nsca-ng-server.init
@@ -35,11 +35,6 @@ CFGFILE="/etc/nsca-ng/nsca-ng.cfg"
 # Load the VERBOSE setting and other rcS variables
 . /lib/init/vars.sh
 
-if [ "${NSCA_NG}" != "yes"  ]; then
-	log_warning_msg "Not starting nsca-ng - edit /etc/default/nsca-ng-server to enable it"
-	exit 0
-fi
-
 if [ -r "$CFGFILE" ]
 then
 	: ${DAEMONUSER:="$(sed -r -n "s/^[[:blank:]]*user[[:blank:]]*=[[:blank:]]*[\"']?([^\"'#[:blank:]]+).*/\1/p" "$CFGFILE")"}
diff --git a/debian/nsca-ng-server.maintscript b/debian/nsca-ng-server.maintscript
new file mode 100644
index 0000000..4339b40
--- /dev/null
+++ b/debian/nsca-ng-server.maintscript
@@ -0,0 +1 @@
+rm_conffile /etc/default/nsca-ng-server

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-nsca-ng.git



More information about the Pkg-nagios-changes mailing list