i'm integrating monit 5.20.0 on my system. The root filesystem is read-only. The command to launch monit does not return any error status code if the state file and id file can not be created.
/usr/bin/monit -c /etc/monitrcStarting Monit 5.25.2 daemon
Monit start delay set to 240s
But the monit process does not exist.
The logs shows me:
monit: Starting Monit 5.25.2 daemon monit: Monit start delay set to 240s monit: State file '/home/root/.monit.state': cannot open for write -- Read-only file system
Now, monit is working fine if I change the path of the files but I report this just for information.
Regards, Sandra Tobajas