summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-05-25 18:21:36 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-05-25 18:21:36 +0200
commitda2617378523e007ec0c6efe99d0cebb2be994e1 (patch)
tree9b3849703205d1168968f6bef2f7d1b93a6a6883
parentcda2b84a69905aafe2f8c6bd3f1c9eefe92b6bbb (diff)
drop hwclock-save.service
We don't want to fiddle around changing the RTC, not on bootup, not on shutdown. If we don't run NTP, we have absolutely no clue what's the current time to store in the RTC. If we run NTP, the kernel syncs the system time every 11 minutes to the RTC. Especially in multi-boot environents we must not call hwclock(8) which tries to be smart with calculating/storing/applying drifts and such. Live-CDs must never touch the RTC, because we don't know if it is running in UTC or locatime.
-rw-r--r--Makefile.am3
-rw-r--r--units/hwclock-save.service17
2 files changed, 0 insertions, 20 deletions
diff --git a/Makefile.am b/Makefile.am
index 1fc91639c..ee16f9800 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -271,13 +271,12 @@ dist_systemunit_DATA = \
units/sys-kernel-debug.automount \
units/sys-kernel-debug.mount \
units/sys-kernel-security.automount \
units/sys-kernel-security.mount \
units/var-run.mount \
units/media.mount \
- units/hwclock-save.service \
units/remount-rootfs.service \
units/printer.target \
units/sound.target \
units/bluetooth.target \
units/smartcard.target \
units/systemd-readahead-done.timer \
@@ -1371,16 +1370,14 @@ endif
$(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
rm -f systemd-update-utmp-runlevel.service && \
$(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
rm -f systemd-update-utmp-shutdown.service \
- hwclock-save.service \
systemd-random-seed-save.service && \
$(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
- $(LN_S) ../hwclock-save.service hwclock-save.service && \
$(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
rm -f systemd-remount-api-vfs.service \
fsck-root.service \
remount-rootfs.service \
var-run.mount \
diff --git a/units/hwclock-save.service b/units/hwclock-save.service
deleted file mode 100644
index dedee767a..000000000
--- a/units/hwclock-save.service
+++ /dev/null
@@ -1,17 +0,0 @@
-# This file is part of systemd.
-#
-# systemd is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-[Unit]
-Description=Update RTC With System Clock
-DefaultDependencies=no
-After=hwclock-load.service
-Before=shutdown.target
-Conflicts=hwclock-load.service
-
-[Service]
-Type=oneshot
-ExecStart=/sbin/hwclock --systohc