[systemd-devel] chkconfig <name> on preferred to --add?

Lennart Poettering lennart at poettering.net
Thu May 23 18:40:06 UTC 2019

On Do, 23.05.19 10:29, Roger Pack (rogerdpack2 at gmail.com) wrote:

> As a note, if I have a sysV  /etc/init.d/name service that is "turned
> on" by "chkconfig --add name" it seems that it adds it to *different
> targets* than what "systemctl enable name" does (which appears to run
> "chkconfig name on" enabling it for all runlevels).  This seems a bit
> confusing?  is it expected?  Or perhaps my systemd version is just
> old?

It's probably a question to ask the chkconfig community, I am not sure
what the difference is, and the man page is not particularly

Note that systemd is not invoking chkconfig directly but instead
/usr/lib/systemd/systemd-sysv-install which is supposed to do the
right thing, and it's up to the distros to make that a shell script or
so that does the right thing. hence it's entirely within the domain of
the distro/chkconfig to do the right thing, we don't control that from
systemd's side.


Lennart Poettering, Berlin

More information about the systemd-devel mailing list