Re: Slow dependency calculation
Roy Marples
Tue Nov 10 20:07:25 2009
On Tuesday 10 November 2009 20:02:48 Ed W wrote:
> Hmm, seems we could potentially merge swclock and hwclock?
I thought about this also, but hwclock is linux only and BSD systems may need
this also.
> Also I think
> the original bug poster overlooked that in his embedded situation he
> probably needs a cron job to regularly rewrite /etc/SHUTDOWNTIME in case
> the user simply unplugs the device rudely?
>
> Perhaps the logic of the clock startup script could be re-ordered to
> something like:
>
> - Set system clock using hwclock
> - Check for /etc/LASTKNOWNTIME
> - If it exists then choose the later of current systemtime and mtime of
> /etc/LASTKNOWNTIME
>
> - At shutdown touch /etc/LASTKNOWNTIME
>
> Does this get us anywhere...? Basically we avoid time stepping backwards
that works for me also. Care to submit a patch and ensure that
/etc/LASTKNOWNTIME is a configurable? I prefer /etc/HEARTBEAT myself.
You should also consider the case where cron has crashed and the system shuts
down normally.
Thanks
Roy
Archive administrator: postmaster@marples.name