Make FreeBSD subclass respect the sleep option.

This commit is contained in:
Guido Falsi 2016-04-23 14:08:19 +02:00
parent f7c32e2b5e
commit 8aac5ae7ba

View file

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