You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been running OMS agent inside of docker as described in the docs. I soon realised that the OMS would die very frequently, even when upgraded to the latest version. The logs would say nothing. This is OMS agent running on ubuntu 16.04 on an Azure VM started via systemd. Right now the Dockerfile runs a sleep inf && wait:
Right now if the OMS service stops responding, the docker container will keep running. I am suggesting that instead of sleep infinity we change the main.sh to something like this:
ERROR_CODE=1
until [ $ERROR_CODE == '0' ] ; do /opt/microsoft/omsagent/bin/service_control is-running; ERROR_CODE=$?; echo "OMSAgent Running"; sleep 15; done
Notice that the exit codes are not standard unix. 0 is false and 1 is success.
The text was updated successfully, but these errors were encountered:
Hi
I have been running OMS agent inside of docker as described in the docs. I soon realised that the OMS would die very frequently, even when upgraded to the latest version. The logs would say nothing. This is OMS agent running on ubuntu 16.04 on an Azure VM started via systemd. Right now the Dockerfile runs a
sleep inf && wait
:https://github.com/Microsoft/OMS-docker/blob/master/1.4.4-210/main.sh#L80
My systemd job looks as follows:
Right now if the OMS service stops responding, the docker container will keep running. I am suggesting that instead of sleep infinity we change the main.sh to something like this:
Notice that the exit codes are not standard unix. 0 is false and 1 is success.
The text was updated successfully, but these errors were encountered: