From 8eabcdcbc6a90c8d466d8c95518ef6e7a8559858 Mon Sep 17 00:00:00 2001 From: SkaveRat Date: Thu, 12 Feb 2015 20:08:18 +0100 Subject: [PATCH] Fix missing restart method Script was missing the restart command --- system/svc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system/svc.py b/system/svc.py index 05ef51afd99..663126163e9 100755 --- a/system/svc.py +++ b/system/svc.py @@ -191,6 +191,9 @@ class Svc(object): def reload(self): return self.execute_command([self.svc_cmd, '-1', self.svc_full]) + def restart(self): + return self.execute_command([self.svc_cmd, '-t', self.svc_full]) + def execute_command(self, cmd): try: (rc, out, err) = self.module.run_command(' '.join(cmd))