[Pkg-sysvinit-devel] Bug#733289: Bug#733289: update-rc.d <service> disable does not work with upstart

Steve Langasek vorlon at debian.org
Sun Dec 29 04:52:28 UTC 2013


Control: tags 733289 pending

On Fri, Dec 27, 2013 at 10:20:02PM -0800, Russ Allbery wrote:
> I have a package with an /etc/default file that implemented the
> ill-conceived idea of disabling the service by changing a setting
> in that file.  I want to migrate away from that approach by
> converting that setting into a proper update-rc.d disable status
> on upgrade.

> This works great with sysvinit and systemd, but update-rc.d disable
> appears not to do anything at all when upstart is used as the init
> system.  From my perspective, this is an important integration
> point.  (I was very happy to see that using update-rc.d disable
> with systemd just did the right thing.)

> Based on my understanding of the upstart documentation, the correct
> action would be to:

>     echo manual > /etc/init/<service>.override

> with, of course, sanity checks to ensure that file doesn't already
> exist, and (as with systemd) synchronization with the sysvinit
> status.  The inverse should happen on enable.

Thanks for pointing this out.  I've committed an implementation of this to
the sysvinit git branch.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20131228/1bd4c833/attachment.sig>


More information about the Pkg-sysvinit-devel mailing list