aboutsummaryrefslogtreecommitdiffstats
path: root/run_policy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'run_policy.sh')
-rw-r--r--run_policy.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/run_policy.sh b/run_policy.sh
index 28b5bf8..b50e8c6 100644
--- a/run_policy.sh
+++ b/run_policy.sh
@@ -21,12 +21,13 @@
mkdir -p logs
LOG_FILE=logs/policy_handler.log
echo "---------------------------------------------" >> ${LOG_FILE} 2>&1
-export APP_VER=$(python setup.py --version)
-echo "APP_VER=${APP_VER}" | tee -a ${LOG_FILE}
-
+echo "APP_VER =" $(python setup.py --version) | tee -a ${LOG_FILE}
+uname -a | tee -a ${LOG_FILE}
echo "/etc/hosts" | tee -a ${LOG_FILE}
cat /etc/hosts | tee -a ${LOG_FILE}
-python -m policyhandler/policy_handler >> ${LOG_FILE} 2>&1 &
+pwd | tee -a ${LOG_FILE}
+
+python -m policyhandler >> ${LOG_FILE} 2>&1 &
PID=$!
function finish {
@@ -37,7 +38,6 @@ function finish {
trap finish SIGHUP SIGINT SIGTERM
echo "running policy_handler as" ${PID} "log" ${LOG_FILE} | tee -a ${LOG_FILE}
-uname -a | tee -a ${LOG_FILE}
free -h | tee -a ${LOG_FILE}
df -h | tee -a ${LOG_FILE}
ps afxvw | tee -a ${LOG_FILE}