Merge pull request #256 from SkaveRat/patch-restart

svc: Fix missing restart method
This commit is contained in:
Brian Coca 2015-02-12 16:31:20 -05:00
commit 0221eba5ec

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