From 9e69cc3aa887269e40c71720050631c7aec8ee3b Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Tue, 28 Apr 2009 21:52:25 +0000 Subject: Fix RcUpdate driver regressions Signed-off-by: Sol Jerome git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5180 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Client/Tools/RcUpdate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/Client/Tools/RcUpdate.py') 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()] -- cgit v1.2.3-1-g7c22