[systemd-devel] [PATCH 1/2] systemctl: Don't skip native units when enabling/disabling SysV init.d scripts
Martin Pitt
martin.pitt at ubuntu.com
Wed May 27 06:07:19 PDT 2015
Hello,
as discussed in the "get some distro patches upstream" thread, this is
the generalization for supporting different
chkconfig/update-rc.d/whatnot distro implementations of enabling
init.d scripts, as per LSB specification.
I figure at some point we might want to drop the explicit
--enable-chkconfig support and instead provide a Fedora/RedHat
chckconfig wrapper in /usr/lib/lsb/{install,remove}_initd ? Then we
can get rid of the #ifdeffery and some code.
I tested this with enabling/disabling with "only systemd unit" and
"only SysV unit", both with and with not having the LSB wrappers. If
there is both a script and a unit for the same name we need a second
patch, will post that separately as 2/2 as it's unrelated to this
change.
Thanks for considering,
Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-systemctl-add-support-for-LSB-init.d-script-enabling.patch
Type: text/x-diff
Size: 4460 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150527/226c1c25/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150527/226c1c25/attachment.sig>
More information about the systemd-devel
mailing list