[Bug 220208] Re: package nagios2-common 2.9-1 failed to upgrade:
Thierry Carrez
thierry.carrez at canonical.com
Thu Jun 19 08:56:17 BST 2008
Analysis: both nagios2 and nagios2-common try to stop nagios2 in prerm.
The prerm in nagios2 tries to fail gracefully using a "|| true" stanza:
-----------------------
#!/bin/sh -e
# we attempt to stop nagios2 twice, once in nagios2-common's prerm
# and once here. otherwise, if nagios2+nagios2-common are being purged,
# the /usr/sbin/nagios2 binary could disappear before nagios2-common's
# prerm script runs, which would prevent it from being able to stop
# the binary.
if [ -x "/etc/init.d/nagios2" ]; then
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d nagios2 stop || true
else
/etc/init.d/nagios2 stop || true
fi
fi
-----------------------
However, usage of "-e" option renders the "|| true" inefficient, prerm
returns 3 in invoke-rc.d fails, therefore breaking the update.
--
package nagios2-common 2.9-1 failed to upgrade:
https://bugs.launchpad.net/bugs/220208
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nagios2 in ubuntu.
More information about the Ubuntu-server-bugs
mailing list