summaryrefslogtreecommitdiffstats
path: root/src/lib/Client
diff options
context:
space:
mode:
authorSol Jerome <solj@ices.utexas.edu>2009-04-28 21:52:25 +0000
committerSol Jerome <solj@ices.utexas.edu>2009-04-28 21:52:25 +0000
commit9e69cc3aa887269e40c71720050631c7aec8ee3b (patch)
tree625098bd9056fd2d81124b272b84260175137fec /src/lib/Client
parentce59d8ebc704e45e23e24d22c773340ba86d47e4 (diff)
downloadbcfg2-9e69cc3aa887269e40c71720050631c7aec8ee3b.tar.gz
bcfg2-9e69cc3aa887269e40c71720050631c7aec8ee3b.tar.bz2
bcfg2-9e69cc3aa887269e40c71720050631c7aec8ee3b.zip
Fix RcUpdate driver regressions
Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5180 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client')
-rw-r--r--src/lib/Client/Tools/RcUpdate.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Client/Tools/RcUpdate.py b/src/lib/Client/Tools/RcUpdate.py
index 6298ca25b..314abe7a1 100644
--- a/src/lib/Client/Tools/RcUpdate.py
+++ b/src/lib/Client/Tools/RcUpdate.py
@@ -19,7 +19,7 @@ class RcUpdate(Bcfg2.Client.Tools.SvcTool):
'''
rc, output = self.cmd.run('/bin/rc-status | grep %s | grep started' % \
entry.attrib['name'])
- status = rc > 0
+ status = (rc == 0)
if not status:
# service is off
@@ -53,7 +53,7 @@ class RcUpdate(Bcfg2.Client.Tools.SvcTool):
def FindExtra(self):
'''Locate extra rc-update Services'''
allsrv = [line.split()[0] for line in \
- self.cmd.run("/bin/rc-status | grep started")[1]]
+ self.cmd.run("/bin/rc-status -s | grep started")[1]]
self.logger.debug('Found active services:')
self.logger.debug(allsrv)
specified = [srv.get('name') for srv in self.getSupportedEntries()]