-
assigned issue to
- changed status to closed
Monit creates a lof of defunct processes if it is launched as PID1
Monit creates a lof of defunct processes if it is launched as PID1:
https://github.com/shoichikaji/docker-monit/issues/1
"So if we run monit as the PID 1 process, monit must have a responsibility for reaping orphaned child processes. But monit doesn't have such a feature."
Comments (6)
-
repo owner -
repo owner - changed component to 1. Monit
-
repo owner - changed component to Monit
-
The use case for Monit as init replacement is monit running inside docker container. Docker container may only start 1 process. If you want more, then that process should start others. This is a perfect use case for Monit, but like noted in this thread it creates a lot of zombie processes, which is a problem. Can this issue be reopened?
-
I was thinking about run monit from init and start some applications. Use case is pretty simple - I do not need to install ha-software with bunch of dependencies to ensure that my app has all required resources and able to run. "sudo" may be a solution, but it doesn't look perfect\portable...
-
repo owner We're currently working on this.
- Log in to comment
We appreciate the trust, but we strongly recommend not running Monit as an init replacement. It is true what the last statement says, that Monit does not have the necessary features to reap orphaned children or at least not in the way required and in the way init does. This might change in the future.