diff options
author | SkaveRat <SkaveRat@users.noreply.github.com> | 2015-02-12 20:08:18 +0100 |
---|---|---|
committer | SkaveRat <skaverat@funlynx.de> | 2015-02-12 22:22:31 +0100 |
commit | 8eabcdcbc6a90c8d466d8c95518ef6e7a8559858 (patch) | |
tree | d20fbbdc4903f908ed5dc16af9c3ccb3b81ba1e6 /system/svc.py | |
parent | 312d59061c7cd019f65ac45c2100ccb5c17040d7 (diff) | |
download | ansible-modules-extras-8eabcdcbc6a90c8d466d8c95518ef6e7a8559858.tar.gz |
Fix missing restart method
Script was missing the restart command
Diffstat (limited to 'system/svc.py')
-rwxr-xr-x | system/svc.py | 3 |
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)) |