Commit 81e04c20 authored by jithu.tagore's avatar jithu.tagore

Update infra_as_service_monitor.py

parent d37b7943
......@@ -217,6 +217,7 @@ def status(service_name):
else:
# service_status = os.system(f'sudo service {str(service_name)} status')
service_status = os.system(f'sudo systemctl status {str(service_name)} --no-pager')
print("hi")
except Exception as e:
logger.info(e)
logger.exception(e)
......@@ -225,7 +226,9 @@ def status(service_name):
if service_status == 0:
logger.info(f"^^^^^^^^^^^^^^^^^^^ {str(service_name)} - Active ^^^^^^^^^^^^^^^^^^^")
if service_name == "docker":
print("docker")
docker_container()
print("finish")
if service_name == 'cassandra' and counter > 0: # if cassandra is already up, kairos restart not needed
# os.system('sudo service kairosdb restart')
......
Markdown is supported
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