Skip to content

Commit

Permalink
2
Browse files Browse the repository at this point in the history
  • Loading branch information
gdraheim committed Aug 1, 2021
1 parent 036f3e4 commit 9cbe1a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions files/docker/systemctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -3617,13 +3617,15 @@ def do_stop_socket_from(self, conf):
def wait_vanished_pid(self, pid, timeout):
if not pid:
return True
if not self.is_active_pid(pid):
return True
logg.info("wait for PID %s to vanish (%ss)", pid, timeout)
for x in xrange(int(timeout)):
time.sleep(1) # until TimeoutStopSec
if not self.is_active_pid(pid):
logg.info("wait for PID %s is done (%s.)", pid, x)
return True
time.sleep(1) # until TimeoutStopSec
logg.info("wait for PID %s failed (%s.)", pid, x)
logg.info("wait for PID %s failed (%s.)", pid, timeout)
return False
def reload_modules(self, *modules):
""" [UNIT]... -- reload these units """
Expand Down

0 comments on commit 9cbe1a0

Please sign in to comment.