diff options
author | Tom Gundersen <teg@jklm.no> | 2011-06-05 19:39:49 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2011-06-05 19:39:49 +0200 |
commit | 2de44ef544862f3ce9144a16c5158ed771fec6de (patch) | |
tree | e47f51d5b4e8260f99c2386734f856045641a54c /Makefile | |
parent | 3b1d78bc524724ed49ac000d85f477876ccfc794 (diff) |
hwclock: refactor daemon
Before: adjust and set time on boot, adjust rtc every hour, and on shutdown.
Now: do not set time on boot, adjust rtc on shutdown.
Rationale:
1) We can never ever set the systemtime after system is up and running, as this might
make time go backwards (unless we are careful à la ntpd, but we don't want to get
into that business).
2) We are under the assumption that exact time is not needed, we are just trying
to avoid large, accumulating drifts over time. With the new (significantly simpler)
implementation systemtime will be off by the drift since the last clean shutdown.
With the old implementation systemtime would be off by the drift since last
shutdown (even if it was unclean). Either way the drifts would not accumulate,
and a clean reboot would get you a "perfect" time.
Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1,5 +1,5 @@ VER := $(shell git describe) -DIRS := /etc/rc.d /etc/conf.d /etc/rc.d/functions.d /etc/cron.hourly /sbin /etc/bash_completion.d /usr/share/zsh/site-functions +DIRS := /etc/rc.d /etc/conf.d /etc/rc.d/functions.d /sbin /etc/bash_completion.d /usr/share/zsh/site-functions minilogd: minilogd.o @@ -9,7 +9,6 @@ installdirs: install: minilogd installdirs install -m644 -t $(DESTDIR)/etc inittab rc.conf install -m755 -t $(DESTDIR)/etc rc.local rc.local.shutdown rc.multi rc.shutdown rc.single rc.sysinit - install -m755 -t $(DESTDIR)/etc/cron.hourly adjtime install -m644 -t $(DESTDIR)/etc/rc.d functions install -m755 -t $(DESTDIR)/etc/rc.d hwclock network netfs install -m755 -t $(DESTDIR)/sbin minilogd rc.d |