[Pkg-nagios-devel] Bug#689631: nscca: /etc/init.d/nsca fails at boot time

Alexander Wirt formorer at debian.org
Thu Oct 4 18:05:17 UTC 2012


On Thu, 04 Oct 2012, oz wrote:

> Package: nsca
> Version: 2.9.1-2
> Severity: normal
> 
> Dear Maintainer,
> 
> nsca daemon does not start after boot on a system with tmpfs on /run. The init-script just makes the directory /var/run/nagios an then exits silently with 'exit 1'.
> 
> A suggested patch for /etc/init.d/nsca is:
> 
> diff -Naur nsca-2.9.1-2/nsca nsca-new/nsca
> --- nsca-2.9.1-2/nsca   2012-10-04 17:42:39.000000000 +0200
> +++ nsca-new/nsca       2012-10-04 17:45:27.000000000 +0200
> @@ -45,8 +45,7 @@
>  fi
>  
>  if [ ! -d "/var/run/nagios" ]; then
> -    mkdir -p /var/run/nagios || log_failure_msg "couldn't create /var/run/nagios"
> -    exit 1
> +   mkdir -p /var/run/nagios || { log_failure_msg "couldn't create /var/run/nagios"; exit 1; }
Ha... nice catch, I'll do an update of nsca at the weekend.

Alex



More information about the Pkg-nagios-devel mailing list