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

Russ Allbery rra at debian.org
Sat Dec 28 06:20:02 UTC 2013


Package: sysv-rc
Version: 2.88dsf-44
Severity: normal

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.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.11-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages sysv-rc depends on:
ii  debconf [debconf-2.0]  1.5.52
ii  insserv                1.14.0-5
ii  sysvinit-utils         2.88dsf-44

Versions of packages sysv-rc recommends:
ii  lsb-base  4.1+Debian12

Versions of packages sysv-rc suggests:
pn  bum           <none>
pn  sysv-rc-conf  <none>

-- debconf information:
  sysv-rc/unable-to-convert:



More information about the Pkg-sysvinit-devel mailing list