chiark / gitweb /
systemctl: drop hardcoded chkconfig invocation
authorMartin Pitt <martin.pitt@ubuntu.com>
Wed, 27 May 2015 15:04:49 +0000 (17:04 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:01:12 +0000 (10:01 +0100)
commitb23f5188ade6ad95d02db160caa6b4c107f81342
treedf4c18871427560632cd14672d3ebfadad8563c0
parentdd6979f65c61a570503929e4d5b592fd7410e0ec
systemctl: drop hardcoded chkconfig invocation

Introduce /usr/lib/systemd/systemd-sysv-install [--root=] <action> <name>
abstraction, replacing the direct calling of chkconfig. This allows
distributions to call their specific tools like update-rc.d without patching
systemd.

Ship systemd-sysv-install.SKELETON as an example for packagers how to implement
this.

Drop the --enable-chkconfig configure option.

Document this in README and point to it in NEWS.
src/systemctl/systemd-sysv-install.SKELETON [new file with mode: 0755]