From 8aac5ae7bae5295fe19e2699e67a86a894c9136f Mon Sep 17 00:00:00 2001 From: Guido Falsi Date: Sat, 23 Apr 2016 14:08:19 +0200 Subject: [PATCH] Make FreeBSD subclass respect the sleep option. --- system/service.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/system/service.py b/system/service.py index fd46cae9a95..b0e39993a9f 100644 --- a/system/service.py +++ b/system/service.py @@ -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