[Pkg-sysvinit-devel] Bug#768450: sysv-rc: invoke-rc.d will start a disabled service for systemd-only or systemd+upstart config

Didier Roche didrocks at ubuntu.com
Fri Nov 7 13:48:20 UTC 2014


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

Dear Maintainer,

invoke-rc.d will start disabled systemd services when there is no
init script. If we only had an upstart (or none) and systemd job,
the job is started unconditionally on invoke-rc.d [restart|start],
which is called by generated dh_installinit postinst (for upstart).

After a discussion on #debian-systemd, it seems the conscensus is to
use a similar logic in invoke-rc.d than the one built for upstart:
- invoke-rc.d start <unit> don't do anything on systemd if the service is
   disabled.
- invoke-rc.d restart <unit> only restart a disabled service if the daemon
  was already running (forced by the admin).

-- System Information:
Debian Release: jessie/sid
   APT prefers vivid-updates
   APT policy: (500, 'vivid-updates'), (500, 'vivid-security'), (500, 
'vivid')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-24-generic (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.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.53ubuntu1
ii  insserv                1.14.0-5ubuntu2
ii  sysvinit-utils         2.88dsf-53.2ubuntu1

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

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



More information about the Pkg-sysvinit-devel mailing list