Comment 6 for bug 929552

Revision history for this message
Steve Langasek (vorlon) wrote : Re: [Bug 929552] Re:package resolvconf 1.63ubuntu7 failed to install/upgrade: Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück

On Fri, Feb 10, 2012 at 07:27:10PM -0000, Thomas Hood wrote:
> The resolvconf package postinst sets up the /etc/resolv.conf symlink
> then enables, triggers and finally performs an update.

> As far as I can see there is no need for the postinst to run the upstart
> job. I don't see why it needs to do "invoke-rc.d resolvconf start".
> The Debian version of the package does not do "invoke-rc.d resolvconf
> start" and the Debian version of the package seems to work properly.

The right way to do this is by calling the init script in the maintainer
script, not by duplicating code between the init script and the maintainer
script.

*Not* starting the upstart job on install also means that stopping is not
idempotent wrt reboots after install. If the job is not running, it cannot
be stopped, so "resolvconf --disable-updates" will not be called when it
should be on shutdown.

We need to find out why the upstart job is failing and fix that, not avoid
calling the upstart job on install/upgrade.