Merge pull request #3525 from madpilot78/freebsd-service-sleep
Make FreeBSD subclass respect the sleep option.
This commit is contained in:
commit
1d25c41844
1 changed files with 6 additions and 1 deletions
|
@ -1003,7 +1003,12 @@ class FreeBsdService(Service):
|
|||
if self.action == "reload":
|
||||
self.action = "onereload"
|
||||
|
||||
return self.execute_command("%s %s %s %s" % (self.svc_cmd, self.name, self.action, self.arguments))
|
||||
ret = self.execute_command("%s %s %s %s" % (self.svc_cmd, self.name, self.action, self.arguments))
|
||||
|
||||
if self.sleep:
|
||||
time.sleep(self.sleep)
|
||||
|
||||
return ret
|
||||
|
||||
# ===========================================
|
||||
# Subclass: OpenBSD
|
||||
|
|
Loading…
Reference in a new issue