public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: [PATCH v3] install initscript for NRPE
Date: Wed, 09 May 2018 14:53:43 +0100	[thread overview]
Message-ID: <6ff5c8f5a0375238a2a0fd310bce9eb339cf7316.camel@ipfire.org> (raw)
In-Reply-To: <2d554bc9-64f6-e1dd-d342-41ebe8a7d57e@link38.eu>

[-- Attachment #1: Type: text/plain, Size: 2823 bytes --]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

This patch is still corrupt and cannot be applied.

Please use git send-email.

- -Michael

On Mon, 2018-05-07 at 16:56 +0200, Peter Müller wrote:
> Install initscript for NRPE addon.
> 
> The second version of this patch actually includes the
> initscript, which was missing due to lack of coffee the
> first time. :-)
> 
> Thanks to Michael for catching it.
> 
> Resent due to crappy linewrapping in initscript by MUA.
> 
> Signed-off-by: Peter Müller <peter.mueller(a)link38.eu>
> ---
>  lfs/nagios_nrpe               |  4 ++++
>  src/initscripts/packages/nrpe | 38 ++++++++++++++++++++++++++++++++++++++
>  2 files changed, 42 insertions(+)
>  create mode 100644 src/initscripts/packages/nrpe
> 
> diff --git a/lfs/nagios_nrpe b/lfs/nagios_nrpe
> index bebb80144..af37f5076 100644
> --- a/lfs/nagios_nrpe
> +++ b/lfs/nagios_nrpe
> @@ -90,5 +90,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
>  	cd $(DIR_APP) && make all $(MAKETUNING)
>  	cd $(DIR_APP) && make install
>  	cd $(DIR_APP) && make install-config
> +
> +	#install initscripts
> +	$(call INSTALL_INITSCRIPT,nrpe)
> +
>  	@rm -rf $(DIR_APP)
>  	@$(POSTBUILD)
> diff --git a/src/initscripts/packages/nrpe b/src/initscripts/packages/nrpe
> new file mode 100644
> index 000000000..cd87c1703
> --- /dev/null
> +++ b/src/initscripts/packages/nrpe
> @@ -0,0 +1,38 @@
> +#!/bin/sh
> 
> +# Begin $rc_base/init.d/nrpe
> +
> +. /etc/sysconfig/rc
> +. $rc_functions
> +
> +NRPEBIN=/usr/bin/nrpe
> +NRPECFG=/etc/nagios/nrpe.cfg
> +
> +case "$1" in
> +	start)
> +		boot_mesg "Starting nrpe..."
> +		loadproc $NRPEBIN -c $NRPECFG -d
> +	;;
> +
> +	stop)
> +		boot_mesg "Stopping nrpe..."
> +		killproc $NRPEBIN
> +		rm -f /var/run/nrpe.pid
> +	;;
> +
> +	restart)
> +		$0 stop
> +		sleep 1
> +		$0 start
> +		;;
> +
> +	status)
> +		statusproc $NRPEBIN
> +	;;
> +
> +	*)
> +	echo "Usage: $0 {start|stop|restart|status}"
> +	exit 1
> +	;;
> +esac
> +
> +# End $rc_base/init.d/nrpe
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE5/rW5l3GGe2ypktxgHnw/2+QCQcFAlry/WcACgkQgHnw/2+Q
CQem4w//RRJgA/0R5cGyWe4LLl9DqDKVeq+xhzssrPAPqgR6pQeBjVNnQx7u6oXc
tHWNRZPBWwt/Y+yCY1QfrDA5Xy3ECjXrotb7SA7+X9rkNsUeiBbQZaiP1z1QjmVw
C8rDnoWTXP5pkGjXJLy8f6PQNGI5P/31L3cIJk0kMtlFrqCZJlxtGRZaYB+2A2Vu
OwrsFWwRyTmksJXcBzwl9ldszcMI9sT8giUFPJqu2HWFymGz3hzYYsCGa3T/XmKL
u8UJBXTDoJ01syTpEvRZp3Bl5QL9GHOAcPynC0S9u8UWn8Il+xSkxffK4KhlzusK
RpMrIkpCyF77FxGlE7i/Bm09QQCxWfJ+k1+NLD3mkJJhzNPlgut8qtGOf9b5CZj/
pAK0SaIOCR7EHPg//soCIxSdAM+lKcnww5v0AROqtFOVCOjrBrPVaxnE8cgXJgDn
H5e3UMwplVubq1ooZDmvvRSZm5rmRVELM+JgoSX0LdXrICRbupoKIlrm+ylVaLrF
UBVt7K4zdmR0y3fwlQkK5C+PgYcAty43U/9p1TgCrN+ILlssyT6HCKQhN5kHX4+U
0XS48a5GOet4KQD4o+1w6SxbCRFKZM54StGea5DiKKhZtAIUv55aCB/bxIPpnJ7m
1RtRPpQlgAK3SwMC8BPbgap5FeRPLC9pB68Wb5P5GwE3VtCBYeQ=
=9f+d
-----END PGP SIGNATURE-----


  reply	other threads:[~2018-05-09 13:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-01 13:00 [PATCH] " Peter Müller
2018-05-07 10:32 ` Michael Tremer
2018-05-07 14:34   ` [PATCH v2] " Peter Müller
2018-05-07 14:56     ` [PATCH v3] " Peter Müller
2018-05-09 13:53       ` Michael Tremer [this message]
2018-05-09 19:59         ` [PATCH v4] " Peter Müller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6ff5c8f5a0375238a2a0fd310bce9eb339cf7316.camel@ipfire.org \
    --to=michael.tremer@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox