We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
service is-active
1 parent d43b499 commit 2496e53Copy full SHA for 2496e53
1 file changed
python/lib/cloudutils/utilities.py
@@ -217,7 +217,8 @@ class serviceOpsRedhat7(serviceOps):
217
def isServiceRunning(self, servicename):
218
try:
219
o = bash("systemctl is-active " + servicename)
220
- return "inactive" not in o.getStdout()
+ textout = o.getStdout()
221
+ return "inactive" not in textout and "failed" not in textout
222
except:
223
return False
224
0 commit comments