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
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]