Make FreeBSD subclass respect the sleep option.
This commit is contained in:
parent
5b32a299a5
commit
582a5bccc8
1 changed files with 6 additions and 1 deletions
|
@ -1003,7 +1003,12 @@ class FreeBsdService(Service):
|
||||||
if self.action == "reload":
|
if self.action == "reload":
|
||||||
self.action = "onereload"
|
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
|
# Subclass: OpenBSD
|
||||||
|
|
Loading…
Reference in a new issue