Running from inetd makes init-script exit with 1, which lets installation/upgrade fail.

Bug #1004630 reported by Michael Lamertz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nagios-nrpe (Debian)
Fix Released
Unknown
nagios-nrpe (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

In /etc/init.d/nagios-nrpe-server, the following section makes the init script exit with a non-zero state if running from inetd.

51 case "$1" in
 52 start)
 53 if [ "$INETD" = 1 ]; then
 54 exit 1
 55 fi

This results in a failed update when running apt-get -u upgrade. Editing this to 0 makes the upgrade run cleanly. Running via (x)inetd is a valid option which can be enabled in /etc/default/nagios-nrpe-server, so this should be considered a bug.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: nagios-nrpe-server 2.12-5ubuntu1.1
ProcVersionSignature: Ubuntu 3.2.0-24.39-generic 3.2.16
Uname: Linux 3.2.0-24-generic x86_64
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
Date: Fri May 25 21:03:07 2012
InstallationMedia: Ubuntu-Server 12.04 LTS "Precise Pangolin" - Beta amd64 (20120327)
ProcEnviron:
 LANGUAGE=en_US:en
 TERM=xterm
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: nagios-nrpe
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.nagios.nrpe.cfg: [modified]
modified.conffile..etc.nagios.nrpe.local.cfg: [modified]
mtime.conffile..etc.default.nagios.nrpe.server: 2012-05-25T20:59:03.856332
mtime.conffile..etc.nagios.nrpe.cfg: 2012-05-02T12:20:38.941387
mtime.conffile..etc.nagios.nrpe.local.cfg: 2012-05-02T12:33:39.893862

Revision history for this message
Michael Lamertz (hu6hzq0zv8-7ao7az9-t16qijz8x5) wrote :
Revision history for this message
Bas Couwenberg (sebastic) wrote :
Changed in nagios-nrpe (Ubuntu):
status: New → Fix Committed
Changed in nagios-nrpe (Debian):
status: Unknown → Fix Released
Revision history for this message
Bas Couwenberg (sebastic) wrote :

nagios-nrpe (3.0.1-2) includes a systemd service file which should resolve this issue (if the administrators masks the systemd service when using inetd).

Changed in nagios-nrpe (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.