Fix missing restart method

Script was missing the restart command
This commit is contained in:
SkaveRat 2015-02-12 20:08:18 +01:00 committed by SkaveRat
parent 312d59061c
commit 8eabcdcbc6

View file

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