Having monit print the output of a process when starting
Issue #1017
new
I’ve been looking for a way to print the output of a process when starting it with :
sudo monit start process
I have multiple custom services that give the following output when started from /etc/init.d/ :
Service starting...
Service started.
Is it possible to have the same behavior when started with monit ?
Hello Alexis,
similar information are available in the syslog or log file written by monit.
For example you will find something like this.
The line command interface is very asynchronous, monit send command requests to the monit daemon process only and does not wait for the response, for commands like start, stop or restart. This is not very useful (I think), because these commands spend a lot of time sometimes. And it is not very useful to get a message from the backgroud after some minutes or to wait until the command finished, in my opinion.
But this depends on my way how to use monit, the information you are interresting in are available.
With regards,
Lutz