Mailinglist Archive: opensuse (924 mails)

< Previous Next >
Re: [opensuse] chkconfig and systemctl
On Mon, Oct 1, 2012 at 6:16 AM, Andreas Jaeger <aj@xxxxxxxx> wrote:
On Monday, October 01, 2012 13:05:44 Michael Schroeder wrote:
On Sat, Sep 29, 2012 at 01:45:33PM +0200, Andrea Turrini wrote:
A "zgrep chkconfig /usr/share/man/man*/*" returns only
ifservices.5.gz, boot.7.gz, daemon.7.gz, chkconfig.8.gz, and
Of these, only daemon (coming from systemd rpm) talks about
chkconfig, where it is described how to integrate rpm .spec file in
order to activate an unit given that the service is active
according to sysV-init. Obviously no mention of the fact that
chkconfig is obsolete or that now its functionality has been
changed by systemd.

I really don't see why the commonly used 'chkconfig <service> on|off'
form should be obsolete. It should call systemctl to do the job
(like it did with insserv).

Did you test it on your system? ;)

It should already work fine if there's an init script:

byrd:~ # chkconfig postfix
Note: Forwarding request to 'systemctl is-enabled postfix.service'.
postfix on
byrd:~ # chkconfig postfix on
insserv: Note: sysvinit service postfix is shadowed by systemd
Forwarding request to '/bin/systemctl --no-reload --root / enable
insserv: Forward service request to systemctl returned error status :

I'm not sure whether it works in general with native systemd
configuration files...

Do you get an error with this command?

# systemctl enable postfix.service

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >