Log the PIDs from run function

This commit is contained in:
Christa Hartsock
2022-07-07 16:40:39 -07:00
parent 1e294eb8c4
commit c341fd4c99

View File

@@ -89,6 +89,8 @@ function check_disk_space {
function run {
while true; do
echo "APP_PID ${APP_PID}"
echo "AWSLOGS_AGENT_PID ${AWSLOGS_AGENT_PID}"
kill -0 ${APP_PID} 2&>/dev/null || break
kill -0 ${AWSLOGS_AGENT_PID} 2&>/dev/null || start_aws_logs_agent
check_disk_space