Permalink
Browse files

Sleep between stop and start.

  • Loading branch information...
mithro committed Jul 26, 2014
1 parent 55f0887 commit 2386707afa343aa6d58a58fd1f20901c9da55361
Showing with 1 addition and 1 deletion.
  1. +1 −1 tools/watchdog/watchdog.py
@@ -307,7 +307,7 @@ def restart_full(self):
logging.info("Would restart flumotion")
return
logging.error('Starting the whole of flumotion')
return subprocess.call('/etc/init.d/flumotion stop; /etc/init.d/flumotion start; kill -9 %s' % os.getpid(), shell=True)
return subprocess.call('/etc/init.d/flumotion stop; sleep 5; /etc/init.d/flumotion start; kill -9 %s' % os.getpid(), shell=True)

def restart_component(self, component, count=Counter()):
"""Restart an individual flumotion component."""

0 comments on commit 2386707

Please sign in to comment.