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

Christian Seiler christian at iwakd.de
Sun Mar 15 15:16:44 GMT 2015


Control: severity -1 important
Control: tags -1 + patch

Dear Maintainer,

(Cc systemd maintainers, because it's of interest to them.)

I have created a patch that implements the previously missing parts of
systemd integration into update-rc.d, following along the lines of the
patch I have written for deb-systemd-helper (bug #780522).

The patch now makes update-rc.d support:

  - drop-in configuration snippets
  - multiple words per setting (i.e. "WantedBy=a b")
  - RequiredBy=, Alias=, Also=

(Note that the patch currently implements the full systemd logic of
also looking at /run/systemd/generator*, which may or may not be
something one wants or not - I would defer to the systemd team as to
whether they'd want to see that included - but it should be consistent
across update-rc.d and deb-systemd-helper.)

Since systemctl enable/disable calls out to update-rc.d, I think this
is something that should definitely be fixed for Jessie (otherwise,
doing systemctl (en|dis)able something-with-alias.service will not work
properly!).

I have diverted update-rc.d on my local machine and replaced it with
the patched version. I've also tested it with some examples and as far
as I can tell it works properly.

Christian
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fully-implement-systemd-integration.patch
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20150315/da829c74/attachment.ksh>


More information about the Pkg-systemd-maintainers mailing list