From d1fd695467b9e831f0a774605b0d44cd009230fe Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 4 May 2011 10:21:27 -0400 Subject: install-scripts: avoid using --list with chkconfig This option does not behave properly in F15 as chkconfig does not list services moved to use systemd service files. Plus there are more direct ways than parsing its output, which are more reliable. Also just testing for the availability of the service calling 'chkconfig name' is enough. https://fedorahosted.org/freeipa/ticket/1206 --- ipa-client/ipa-install/ipa-client-install | 6 ------ 1 file changed, 6 deletions(-) (limited to 'ipa-client/ipa-install') diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install index 5533b9ab2..6265a7c2e 100755 --- a/ipa-client/ipa-install/ipa-client-install +++ b/ipa-client/ipa-install/ipa-client-install @@ -169,12 +169,6 @@ def chkconfig(name, status): chkconfig returns 1 if the service is unknown, 0 otherwise """ - (sout, serr, returncode) = run(['/sbin/chkconfig', name, '--list'], raiseonerr=False) - - # If the service isn't installed return with no error - if returncode == 1: - return - args = ['/sbin/chkconfig', name, status] (sout, serr, returncode) = run(args, raiseonerr=False) -- cgit