|
From: | fusillator |
Subject: | Re: source patch to alterate log level of start stop restart event |
Date: | Thu, 3 Dec 2020 18:31:31 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 |
Hi Lutz thanks for your helpYeah i had evaluated that option too, you're right the output of the program is collected in the monit log, anyway not those of start/stop scripts. So it's not enough to implement the check process logic in the program check script, you need to embed also the startup logic.
And you need to set up two check program if you want to start stop your service using monit, maybe too machinary.. do you mean that?
On 03/12/20 09:48, Lutz Mader wrote:
Hello Luca, yes, sometimes I missed some script/program output too. For some scripts I am interresting in the output I use "check program". This works well and support "start program" and "stop program" and you can use the script status check to test the application as long as you get a useful status code from the script. A suggestion only, Lutz
[Prev in Thread] | Current Thread | [Next in Thread] |