From bda49efb4c21f093206a9ff48fdf9876dee01e73 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Thu, 4 Nov 2004 15:47:18 +0000 Subject: keep service starts from occuring during build (Logical change 1.142) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@641 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Client/Debian.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/Client/Debian.py b/src/lib/Client/Debian.py index b9c621e2b..da096a2e8 100644 --- a/src/lib/Client/Debian.py +++ b/src/lib/Client/Debian.py @@ -217,9 +217,10 @@ class Debian(Toolset): else: self.VerifyEntry(child) self.CondPrint('debug', "Re-checking entry %s %s: %s" % (child.tag, child.get('name'), self.states[child])) - for svc in [x for x in entry.getchildren() if x.tag == 'Service']: - self.CondPrint('debug', "Restarting service %s" % (svc.get('name'))) - system('/etc/init.d/%s restart > /dev/null' % (svc.get('name'))) + if not self.setup['build']: + for svc in [x.get('name') for x in entry.getchildren() if x.tag == 'Service']: + self.CondPrint('debug', "Restarting service %s" % (svc)) + system('/etc/init.d/%s restart > /dev/null' % (svc)) if [x for x in entry.getchildren() if not self.states[x]]: if entry.tag == 'Bundle': -- cgit v1.2.3-1-g7c22