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

Make FreeBSD subclass respect the sleep option.
This commit is contained in:
Toshio Kuratomi 2016-04-23 08:22:21 -07:00
commit 1d25c41844

View file

@ -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