|
From: | David Jones |
Subject: | Re: Monit start delay only on boot |
Date: | Mon, 3 Jun 2019 20:15:59 +0000 |
Correct, I want to drop the start delay down to 30 seconds from my current setting of 120 so service restarts will have less lag. However, there could be some things like JAVA-based applications that need more time to startup completely after a server reboot.
This would be best solved if a new option was added to monit that could check the uptime (/proc/uptime) and allow for a special delay at startup separate from the current "with start delay."
Maybe something like this:
/etc/monitrc
set daemon 30
with start delay 30
and bootup start delay of 120
Then another setting like:
set bootup start delay period 600
so the first 10 minutes of the server booting up would have an extra 120 seconds of delay.
Thoughts?
I looked at doing something custom with systemd and it's going to be difficult/impossible to do a long delay reliably.
From: monit-general <monit-general-bounces+address@hidden> on behalf of address@hidden <address@hidden>
Sent: Monday, June 3, 2019 2:53 PM To: This is the general mailing list for monit Subject: Re: Monit start delay only on boot Hi Dave,
if monit depends on some services on your system, it'll be maybe better to set the dependencies and drop the start delay option from the configuration file.
Best regards,
Martin
|
[Prev in Thread] | Current Thread | [Next in Thread] |