I created a new Stemcell with Ubuntu 16.04 and the latest Monit Version 5.26.0.
Monit start the node_exporter_ctl and after 30 seconds by default generated a restart loop.
The problem is the "exec node_exporter" running in foreground and don't send a status back to Monit.
What is here the best practice to handle this?
I removed line 72: echo $$ > ${PIDFILE}
and added to end of exec: & echo $! >$PIDFILE
This works, but would rather use this offical Repo as source instead of forking