Mailinglist Archive: opensuse (924 mails)

< Previous Next >
Re: [opensuse] chkconfig and systemctl
  • From: Andreas Jaeger <aj@xxxxxxxx>
  • Date: Mon, 01 Oct 2012 13:16:30 +0200
  • Message-id: <1708825.pREni8s8EU@byrd>
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...

Andreas Jaeger aj@{,} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126

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

< Previous Next >
Follow Ups