diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2007-04-02 13:15:16 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2007-04-02 13:15:16 +0000 |
commit | ac0a8cac907e7f47b9ebeff63efffc5f4daec667 (patch) | |
tree | a851344295b6d1a2763d96ab48a3ef642cdab9bb /src/lib/Client/Tools | |
parent | 74db7710fe97cee9f008b5ad4c3cee9dae39dfe8 (diff) | |
download | bcfg2-ac0a8cac907e7f47b9ebeff63efffc5f4daec667.tar.gz bcfg2-ac0a8cac907e7f47b9ebeff63efffc5f4daec667.tar.bz2 bcfg2-ac0a8cac907e7f47b9ebeff63efffc5f4daec667.zip |
Fix service status check
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3001 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Tools')
-rw-r--r-- | src/lib/Client/Tools/Chkconfig.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Client/Tools/Chkconfig.py b/src/lib/Client/Tools/Chkconfig.py index 8e30cccc9..c551d6134 100644 --- a/src/lib/Client/Tools/Chkconfig.py +++ b/src/lib/Client/Tools/Chkconfig.py @@ -30,7 +30,8 @@ class Chkconfig(Bcfg2.Client.Tools.SvcTool): except IndexError: onlevels = [] - pstatus = self.cmd.run('/sbin/service %s status')[0] + pstatus = self.cmd.run('/sbin/service %s status' % \ + entry.get('name'))[0] # chkconfig/init.d service if entry.get('status') == 'on': status = (len(onlevels) > 0 ) and pstatus |