I have a ruby process that don't run as a daemon (it runs in the foreground), but can generate a pid file. My question is does Monit always expects to monitor background/daemonized processes?
I used Bluepill in the past, and that was the default behaviour:
Note that since we specified a PID file and start command, bluepill assumes the process will daemonize itself. If we wanted bluepill to daemonize it for us, we can do (note we still need to specify a PID file): process.daemonize = true
Is there something similar for monit? AFAIK, as long as the process (daemon or not) can create a PID file, Monit will detect if it daemonize itself and won't daemonize it and vice versa...
Thank you