aboutsummaryrefslogtreecommitdiffstats
path: root/run_policy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'run_policy.sh')
-rw-r--r--run_policy.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/run_policy.sh b/run_policy.sh
index a95aee9..28b5bf8 100644
--- a/run_policy.sh
+++ b/run_policy.sh
@@ -29,7 +29,6 @@ cat /etc/hosts | tee -a ${LOG_FILE}
python -m policyhandler/policy_handler >> ${LOG_FILE} 2>&1 &
PID=$!
-echo "running policy_handler as" ${PID} "log" ${LOG_FILE} | tee -a ${LOG_FILE}
function finish {
echo "killing policy_handler ${PID}" $(date +%Y_%m%d-%H:%M:%S.%N) | tee -a ${LOG_FILE}
kill -9 ${PID}
@@ -37,6 +36,13 @@ 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}
+ss -aepi | tee -a ${LOG_FILE}
+
wait ${PID}
echo "---------------------------------------------" >> ${LOG_FILE} 2>&1
mv ${LOG_FILE} ${LOG_FILE}.$(date +%Y-%m-%d_%H%M%S)