Merge pull request #3525 from madpilot78/freebsd-service-sleep

Make FreeBSD subclass respect the sleep option.
reviewable/pr18780/r1
Toshio Kuratomi 9 years ago
commit 1d25c41844

@ -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…
Cancel
Save