summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Debian.py
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2004-11-04 15:47:18 +0000
committerNarayan Desai <desai@mcs.anl.gov>2004-11-04 15:47:18 +0000
commitbda49efb4c21f093206a9ff48fdf9876dee01e73 (patch)
tree0d625d77e338e53d22d899ce5803d49bb806fd98 /src/lib/Client/Debian.py
parent37aec77edd5a13b30fc85056548f4193c0296e20 (diff)
downloadbcfg2-bda49efb4c21f093206a9ff48fdf9876dee01e73.tar.gz
bcfg2-bda49efb4c21f093206a9ff48fdf9876dee01e73.tar.bz2
bcfg2-bda49efb4c21f093206a9ff48fdf9876dee01e73.zip
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
Diffstat (limited to 'src/lib/Client/Debian.py')
-rw-r--r--src/lib/Client/Debian.py7
1 files 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':