From 713d32b37868fd825522f141fa2ced9511f2a7f7 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Thu, 10 Feb 2011 11:14:28 +0100 Subject: [PATCH] Install NPCD init/default scripts with --name=npcd rather than pnp4nagios-bin. --- ...4nagios-bin.default => pnp4nagios-bin.npcd.default} | 2 +- .../{pnp4nagios-bin.init => pnp4nagios-bin.npcd.init} | 10 +++++----- debian/rules | 3 ++- 3 files changed, 8 insertions(+), 7 deletions(-) rename debian/{pnp4nagios-bin.default => pnp4nagios-bin.npcd.default} (75%) rename debian/{pnp4nagios-bin.init => pnp4nagios-bin.npcd.init} (95%) diff --git a/debian/pnp4nagios-bin.default b/debian/pnp4nagios-bin.npcd.default similarity index 75% rename from debian/pnp4nagios-bin.default rename to debian/pnp4nagios-bin.npcd.default index 737a536..dba2ddf 100644 --- a/debian/pnp4nagios-bin.default +++ b/debian/pnp4nagios-bin.npcd.default @@ -1,4 +1,4 @@ -# Default settings for the pnp4nagios init script. +# Default settings for the NPCD init script. # Should NPCD be started? ("yes" to enable) RUN="yes" diff --git a/debian/pnp4nagios-bin.init b/debian/pnp4nagios-bin.npcd.init similarity index 95% rename from debian/pnp4nagios-bin.init rename to debian/pnp4nagios-bin.npcd.init index 92bdf7e..af01ee8 100644 --- a/debian/pnp4nagios-bin.init +++ b/debian/pnp4nagios-bin.npcd.init @@ -7,7 +7,7 @@ # Copyright (c) 2009 Sven Velt # ### BEGIN INIT INFO -# Provides: pnp4nagios-bin +# Provides: npcd # Required-Start: $network $local_fs $remote_fs # Required-Stop: $network $local_fs $remote_fs # Should-Start: @@ -39,13 +39,13 @@ STARTTIME=2 LOGFILE=$LOGDIR/$NAME.log # Include defaults if available -if [ -f /etc/default/pnp4nagios ] ; then - . /etc/default/pnp4nagios +if [ -f /etc/default/npcd ] ; then + . /etc/default/npcd fi -# Check if RUN is set to "yes" in /etc/defaults/pnp4nagios +# Check if RUN is set to "yes" in /etc/defaults/npcd if [ "x$RUN" != "xyes" ] ; then - echo "$NAME has been disabled in /etc/default/pnp4nagios." + echo "$NAME has been disabled in /etc/default/npcd." exit 0 fi diff --git a/debian/rules b/debian/rules index 13dc456..1fcf7ba 100755 --- a/debian/rules +++ b/debian/rules @@ -178,7 +178,8 @@ binary-arch: build install dh_installchangelogs -a ChangeLog dh_installdocs -A -a AUTHORS README README.Debian dh_installexamples -a - dh_installinit -a + dh_installinit -ppnp4nagios-bin --name=npcd + dh_installinit -a -Npnp4nagios-bin dh_installman -a man/npcd.8 dh_link -a dh_strip -a -- 2.30.2