summaryrefslogtreecommitdiff
path: root/system/svc.py
diff options
context:
space:
mode:
authorSkaveRat <SkaveRat@users.noreply.github.com>2015-02-12 20:08:18 +0100
committerSkaveRat <skaverat@funlynx.de>2015-02-12 22:22:31 +0100
commit8eabcdcbc6a90c8d466d8c95518ef6e7a8559858 (patch)
treed20fbbdc4903f908ed5dc16af9c3ccb3b81ba1e6 /system/svc.py
parent312d59061c7cd019f65ac45c2100ccb5c17040d7 (diff)
downloadansible-modules-extras-8eabcdcbc6a90c8d466d8c95518ef6e7a8559858.tar.gz
Fix missing restart method
Script was missing the restart command
Diffstat (limited to 'system/svc.py')
-rwxr-xr-xsystem/svc.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/system/svc.py b/system/svc.py
index 05ef51af..66312616 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))