Skip to content

Commit

Permalink
Sleep between stop and start.
Browse files Browse the repository at this point in the history
  • Loading branch information
mithro committed Jul 26, 2014
1 parent 55f0887 commit 2386707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/watchdog/watchdog.py
Expand Up @@ -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."""
Expand Down

0 comments on commit 2386707

Please sign in to comment.