Start monit as a foreground process in docker

1/12/2018

I want to start monit process in docker. Since its getting daemonized, the container is getting completed once monit starts .What is the best way to run it as a foreground process.

-- Daniel Sagayaraj
docker
kubernetes
monit

1 Answer

1/12/2018

From https://wiki.gentoo.org/wiki/Monit:

Running monit in the foreground
To run monit in the foreground and provide feedback on everything it is detecting, use the -Ivv option:

root #monit -Ivv
-- Radek 'Goblin' Pieczonka
Source: StackOverflow