[Freeipa-devel] [PATCH] 0097 Avoid --list option of chkconfig

Simo Sorce simo at redhat.com
Wed May 4 15:01:14 UTC 2011


On Wed, 2011-05-04 at 16:56 +0200, Martin Kosek wrote:
> On Wed, 2011-05-04 at 10:28 -0400, Simo Sorce wrote:
> > The chkconfig --list option is not reliable as it works differently on a
> > F15 system with systemd enabled services, avoid using it as we have
> > alternative better ways.
> > 
> > Simo.
> > 
> 
> NACK. This breaks the installation:
> 
> # ipa-server-install
> ...
> Configuring ntpd
>   [1/4]: stopping ntpd
>   [2/4]: writing configuration
>   [3/4]: configuring ntpd to start on boot
> Unexpected error - see ipaserver-install.log for details:
>  Command '/sbin/chkconfig --level 3 ntpd' returned non-zero exit status 1
> 
> I think you want to make use of raiseonerr=False parameter in
> ipautil.run().
> 
> Plus, I would prefer integers to be used in runlevels array instead of a
> string containing an integer. Makes more sense to do it this way.

New patch attached.

Simo.

-- 
Simo Sorce * Red Hat, Inc * New York
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-simo-0097-2-install-scripts-avoid-using-list-with-chkconfig.patch
Type: text/x-patch
Size: 2632 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20110504/1725649e/attachment.bin>


More information about the Freeipa-devel mailing list