summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Client/Tools')
-rw-r--r--src/lib/Client/Tools/Chkconfig.py3
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