linux-l: hwclock && timeserver

Dr. Bernd Freistedt bf at bcf.in-berlin.de
Di Jul 13 15:36:28 CEST 1999


---Matthias Kranz (linux-l at mlists.in-berlin.de) wrote on Tue, 13 Jul 1999 13:40:18 +0200
> On Tue, Jul 13, 1999 at 10:09:22AM +0200, Dr. Bernd Freistedt wrote:
>> ---Oliver Hillmann (linux-l at mlists.in-berlin.de) wrote on Tue, 13 Jul 1999
> 01:17:22 +0200 (CEST)
>> > On Tue, 13 Jul 1999, Dr. Bernd Freistedt wrote:
>> > 
>> >> Wenn Du das moechtest kann
>> >>     `0 */2 * * * root netdate -v time.fu-berlin.de > /dev/null ;\
>> >>     /sbin/clock -uw`
>> >> in die /etc/crontab (cron muss danach restartet werden).
>> > 
>> > Oops! Ist dem wirklich so? Nicht, daß mir das Dämonenstarten nach
>> > Konfigurationsdateienänderung neu wäre... Aber cron?
>> 
>> Ja, das ist es. Der cron-Daemon muss die crontab erst weieder
>> einlesen, sonst arbeitet er mit der alten weiter.
> 
> Man page excerpt:
> 
> ....
>        Additionally, cron checks each minute to see if its  spool
>        directory's  modtime  (or the modtime on /etc/crontab) has
>        changed, and if it has, cron will then examine the modtime
>        on all crontabs and reload those which have changed.  Thus
>        cron need not be restarted whenever a crontab file is mod­
>        ified.   Note that the crontab(1) command updates the mod­
>        time of the spool directory whenever it changes a crontab.

Aha. Hm.

Sorry, wenn ich'n Knick in der Denkoptik vermittelt habe, aber
_mein_ cron jokelte ewig wie gehabt weiter, wenn ich die crontab
aenderte. Erst ein restart brachte ihn zur Vernunft.

Nun ja, aber wie man sieht, sagt die Theorie etwas ganz anderes
;-)

Gruessli
Bernd

-- 
This is a test of the emergency signature system.
Were this an actual signature, you would see
amusing mottos, disclaimers, a zillion net addresses,
or edifying philisophical statements.




Mehr Informationen über die Mailingliste linux-l