Search code examples
dockerkubernetesmonit

Start monit as a foreground process in docker


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?


Solution

  • 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