启动monit作为docker中的前台进程

时间:2021-07-14 20:43:49

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.

我想在docker中启动monit进程。由于它被守护进程,一旦monit启动,容器就会完成。将它作为前台进程运行的最佳方法是什么。

1 个解决方案

#1


0  

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

#1


0  

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