|
|
@ -330,11 +330,11 @@ class LinuxService(Service):
|
|
|
|
rc1, stdout1, stderr1 = self.execute_command("%s %s %s" % (svc_cmd, 'stop', self.arguments))
|
|
|
|
rc1, stdout1, stderr1 = self.execute_command("%s %s %s" % (svc_cmd, 'stop', self.arguments))
|
|
|
|
rc2, stdout2, stderr2 = self.execute_command("%s %s %s" % (svc_cmd, 'start', self.arguments))
|
|
|
|
rc2, stdout2, stderr2 = self.execute_command("%s %s %s" % (svc_cmd, 'start', self.arguments))
|
|
|
|
if rc1 != 0 and rc2 == 0:
|
|
|
|
if rc1 != 0 and rc2 == 0:
|
|
|
|
rc_state = rc + rc2
|
|
|
|
rc_state = rc2
|
|
|
|
stdout = stdout2
|
|
|
|
stdout = stdout2
|
|
|
|
stderr = stderr2
|
|
|
|
stderr = stderr2
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
rc_state = rc + rc1 + rc2
|
|
|
|
rc_state = rc1 + rc2
|
|
|
|
stdout = stdout1 + stdout2
|
|
|
|
stdout = stdout1 + stdout2
|
|
|
|
stderr = stderr1 + stderr2
|
|
|
|
stderr = stderr1 + stderr2
|
|
|
|
|
|
|
|
|
|
|
|