diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2015-05-27 17:04:49 +0200 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2015-05-28 19:42:45 +0200 |
commit | 0f0467e63b0e0688ae9edb1512c1a2637d62ddb4 (patch) | |
tree | 1ca0ca946985d72a0c45dd7dfe880326d44654d8 /README | |
parent | d31dd62ba290f3f299b65f9319bf5a5436ca8622 (diff) | |
download | systemd-0f0467e63b0e0688ae9edb1512c1a2637d62ddb4.tar.gz |
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.
Diffstat (limited to 'README')
-rw-r--r-- | README | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -222,6 +222,17 @@ NSS: hosts: files mymachines resolve myhostname +SYSV INIT.D SCRIPTS: + When calling "systemctl enable/disable/is-enabled" on a unit which is a + SysV init.d script, it calls /usr/lib/systemd/systemd-sysv-install; + this needs to translate the action into the distribution specific + mechanism such as chkconfig or update-rc.d. Packagers need to provide + this script if you need this functionality (you don't if you disabled + SysV init support). + + Please see src/systemctl/systemd-sysv-install.SKELETON for how this + needs to look like, and provide an implementation at the marked places. + WARNINGS: systemd will warn you during boot if /etc/mtab is not a symlink to /proc/mounts. Please ensure that /etc/mtab is a |