aboutsummaryrefslogtreecommitdiffstats
path: root/bin/run.py
diff options
context:
space:
mode:
authorGokul Singaraju <gs244f@att.com>2018-04-19 22:34:23 -0400
committerGokul Singaraju <gs244f@att.com>2018-04-19 22:37:50 -0400
commit44089313231b33a65ed5058a5d1c6b1d0637aa38 (patch)
treedaa5a26bc8ebe5f41cec2402f32d6043c9070872 /bin/run.py
parent042bc21ea4af4c8e5ee4cbbb0e3d0c89a70b7b8e (diff)
Add healthcheck api
Issue-ID: DCAEGEN2-456 Change-Id: I7455e357e5fb584f644768d33437ef43f53be6e5 Signed-Off-by: Gokul Singaraju <gs244f@att.com>
Diffstat (limited to 'bin/run.py')
-rwxr-xr-xbin/run.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/run.py b/bin/run.py
index 159e7a4..95cb4d9 100755
--- a/bin/run.py
+++ b/bin/run.py
@@ -21,6 +21,7 @@
# Author Gokul Singaraju gs244f@att.com
#
+import os
import sys
import yaml
import multiprocessing
@@ -45,6 +46,10 @@ if __name__ == '__main__':
multiprocessing.log_to_stderr()
logger = multiprocessing.get_logger()
logger.setLevel(logging.INFO)
+ my_env = os.environ.copy()
+ my_env["PYTHONPATH"] = my_env["PYTHONPATH"]+"/usr/local/lib/python3.6:"
+ p = subprocess.Popen(['./bin/check_health.py'],stdout=subprocess.PIPE,env=my_env)
+ #print(p.communicate())
with open("./miss_htbt_service/config/config.yaml", 'r') as ymlfile:
cfg = yaml.load(ymlfile)
# Put some initial values into the queue