Commit eade13ac authored by Benjamin Baer's avatar Benjamin Baer
Browse files

Restart Service Module implementiert

parent 0b433643
......@@ -31,8 +31,7 @@ class RestartService(managementagent.RabbitModule):
servicename = instructions['servicename']
logger.debug('trying to restart service %s', servicename)
process = subprocess.Popen(['/usr/bin/service', servicename, 'restart'])
process = subprocess.Popen(['/usr/bin/service', servicename, 'restart'])
process.wait()
if process.returncode != 0:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment