summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2011-01-22 12:05:26 -0600
committerNarayan Desai <desai@mcs.anl.gov>2011-01-22 12:05:26 -0600
commitb29f693a88796fcd26d078ec72cf3a02603066f7 (patch)
treeed1764da67f981972677beb595f5b3fc3564dcc6 /src
parent0162156c4b87427e9098cd007ef0090a5bcca269 (diff)
downloadbcfg2-b29f693a88796fcd26d078ec72cf3a02603066f7.tar.gz
bcfg2-b29f693a88796fcd26d078ec72cf3a02603066f7.tar.bz2
bcfg2-b29f693a88796fcd26d078ec72cf3a02603066f7.zip
Chkconfig: track supervised services properly (Resolves Ticket #856)
Diffstat (limited to 'src')
-rw-r--r--src/lib/Client/Tools/Chkconfig.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Client/Tools/Chkconfig.py b/src/lib/Client/Tools/Chkconfig.py
index b7227ec3d..bf2a2c1e1 100644
--- a/src/lib/Client/Tools/Chkconfig.py
+++ b/src/lib/Client/Tools/Chkconfig.py
@@ -60,8 +60,8 @@ class Chkconfig(Bcfg2.Client.Tools.SvcTool):
if not(self.setup.get('dryrun')) and needs_modification:
self.cmd.run('/sbin/service %s %s' % (entry.get('name'),
command))
- pstatus = self.cmd.run('/sbin/service %s status' % \
- entry.get('name'))[0]
+ # service was modified, so it failed
+ pstatus = False
# chkconfig/init.d service
if entry.get('status') == 'on':