diff options
Diffstat (limited to 'src/lib/Client/Tools/Chkconfig.py')
-rw-r--r-- | src/lib/Client/Tools/Chkconfig.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/Client/Tools/Chkconfig.py b/src/lib/Client/Tools/Chkconfig.py index 382a575d0..02e01bb32 100644 --- a/src/lib/Client/Tools/Chkconfig.py +++ b/src/lib/Client/Tools/Chkconfig.py @@ -47,6 +47,10 @@ class Chkconfig(Bcfg2.Client.Tools.SvcTool): if entry.get('supervised', 'false') == 'true': pstatus, pout = self.cmd.run('/sbin/service %s status' % \ entry.get('name')) + if pstatus: + self.cmd.run('/sbin/service %s start' % (entry.get('name'))) + pstatus, pout = self.cmd.run('/sbin/service %s status' % \ + entry.get('name')) # chkconfig/init.d service if entry.get('status') == 'on': status = status and not pstatus |