Re: Slow dependency calculation
Roy Marples
Tue Nov 10 20:02:49 2009
On Tuesday 10 November 2009 19:53:45 Ed W wrote:
> Roy Marples wrote:
> > You can replace the hwclock init script with the swclock init script
> > which sets the local time to the time when the system was shutdown. This
> > avoids the dependency recalc due to the invalid clock and you then run
> > ntp to correctly set the time.
>
> Sounds like an interesting idea... What is swclock - not on my
> openrc-0.4 system? (Aha, google comes up with some stuff, eg:
> http://bugs.gentoo.org/272073 - I guess it's in 0.5 only?)
yes, 0.5 only
> An additional problem for this setup is that it will be unreliably
> connected to the internet and even then only over dialup, so ntp will
> not normally be available. However, some kind of monotonically
> increasing clock is at least an improvement... Actually I will
> hopefully be fitting cmos batteries to the final design, so this may be
> somewhat moot...
> I also added the dependency calc script to the default (startup) level
> (as well as the shutdown level). Can you see why this might be a
> problem? Any reason not to do it by default? (In my case I assume the
> user will always just pull the plug and so we will never run the
> shutdown scripts - it's a router basically...
It should be added to the boot runlevel, and the hwclock init script removed
from there.
Why the need to add a dependency calc script? Provided that the clock
increases upwards and never backwards, openrc should detect changed configs and
update dependency tree automatically.
Thanks
Roy
Archive administrator: postmaster@marples.name