Commit 1e7a2c2c authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

return True or False so that we can know stop/start succeeded or not.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@42204 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6ba5ec8a
...@@ -59,7 +59,8 @@ def waitStartDaemon(daemon, attempts): ...@@ -59,7 +59,8 @@ def waitStartDaemon(daemon, attempts):
for num in range(attempts): for num in range(attempts):
sleep(1) sleep(1)
if daemon.status(): if daemon.status():
return return True
return False
def waitStopDaemon(daemon, attempts=5): def waitStopDaemon(daemon, attempts=5):
...@@ -67,7 +68,8 @@ def waitStopDaemon(daemon, attempts=5): ...@@ -67,7 +68,8 @@ def waitStopDaemon(daemon, attempts=5):
for num in range(attempts): for num in range(attempts):
sleep(1) sleep(1)
if not daemon.status(): if not daemon.status():
break return True
return False
def remove_file(filepath): def remove_file(filepath):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment