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/
[email protected]                                     [email protected]

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Pkg-sysvinit-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-sysvinit-devel

Reply via email to