Merge remote-tracking branch 'origin/4.13'

This commit is contained in:
Rohit Yadav 2019-09-10 22:05:10 +05:30
commit c01ce7b2b2
1 changed files with 2 additions and 1 deletions

View File

@ -217,7 +217,8 @@ class serviceOpsRedhat7(serviceOps):
def isServiceRunning(self, servicename):
try:
o = bash("systemctl is-active " + servicename)
return "inactive" not in o.getStdout()
textout = o.getStdout()
return "inactive" not in textout and "failed" not in textout
except:
return False