sysv-rc: [patch] much improved update-rc.d integration w/ systemd

Florian Schlichting fsfs at debian.org
Fri Mar 20 23:47:59 GMT 2015


Raphael Hertzog wrote:
> On Sun, 15 Mar 2015, Christian Seiler wrote:
>> Control: severity -1 important
>> Control: tags -1 + patch
>
> I'm tempted to raise the severity to serious as the current behaviour
> is really bad for packages that ship both native .service files and
> init script.

I think the severity should be raised - the working of update-rc.d ought
to be improved for jessie.

My case is mpd, which ships an init script, a .service as well as a
.socket file. The .service file references the .socket file in an Also=
directive.

On a machine using systemd, calling 'update-rc.d mpd disable' will only
disable the .service file; the .socket file remains enabled and will
continue to start the daemon as specified in the .service file on
connect to the listening socket/port. Thus in effect, nothing has
changed: update-rc.d fails to disable mpd.

Florian

BTW 'systemctl disable mpd' does the right thing and disables both
units.




More information about the Pkg-systemd-maintainers mailing list