monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reset time patch


From: Rory Toma
Subject: Re: Reset time patch
Date: Fri, 28 Feb 2014 10:50:44 -0800
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

On 2/28/14, 8:04 AM, Weedy wrote:


On 27 Feb 2014 15:36, "Rory Toma" <address@hidden> wrote:
>
> Attached is a patch that will re-init monit if the timestamp of the monit pidfile is older than the uptime of the system and you have sysinfo.
>
> This is useful on embedded systems that may not have a battery backed clock, as when the time is set, the system can jump forward 40 years.

We "fixed" this in OpenWRT with an init script.
https://dev.openwrt.org/browser/trunk/package/base-files/files/etc/init.d/sysfixtime



--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
We use OpenWRT, but we are also using monit as an sys v startup partial replacement. Our box comes up and sets time to something fairly recent, so SSL works, and then ntp will kick in later. However, we have stuff that is started by monit to start the network. In our case, this patch works, and, true, may not be good for general use. It may be sufficient to reset the time counters internal to monit instead of re-initting it.

Not necessarily expecting it to be in the mainline, but thought someone might find it useful or have a different solution.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]