]> err.no Git - systemd/commitdiff
units: enable hwclock by default
authorKay Sievers <kay.sievers@vrfy.org>
Tue, 21 Sep 2010 19:33:24 +0000 (21:33 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 21 Sep 2010 19:33:24 +0000 (21:33 +0200)
Makefile.am
units/hwclock-load.service
units/hwclock-save.service

index c2e903ad6970fb97cc5563a17a1050a0f3893449..e73741f853de2ee3c4ab993a60355ca0e4e380a3 100644 (file)
@@ -941,8 +941,10 @@ install-data-hook:
                $(LN_S) ../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 && \
+               $(LN_S) ../hwclock-save.service && \
                $(LN_S) ../systemd-random-seed-save.service )
        ( cd $(DESTDIR)$(sessionunitdir) && \
                rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
@@ -987,6 +989,7 @@ install-data-hook:
                        systemd-vconsole-setup.service \
                        systemd-modules-load.service \
                        systemd-random-seed-load.service \
+                       hwclock-load.service \
                        tmpwatch.timer \
                        tmpwatch.service && \
                $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
@@ -997,6 +1000,7 @@ install-data-hook:
                $(LN_S) ../systemd-vconsole-setup.service && \
                $(LN_S) ../systemd-modules-load.service && \
                $(LN_S) ../systemd-random-seed-load.service && \
+               $(LN_S) ../hwclock-load.service && \
                $(LN_S) ../tmpwatch.timer && \
                $(LN_S) ../tmpwatch.service )
        ( cd $(DESTDIR)$(dbussessionservicedir) && \
index 85d56db5d2fa5059866f05b6e5d8f2fd2083968c..493c7653a912da6b55d25ecb2fe1605eabfd2dae 100644 (file)
@@ -26,6 +26,3 @@ ExecStart=/sbin/hwclock --systz
 # Note that we do not run --hctosys here, we assume the kernel
 # includes a compiled in RTC module which is used to initialize the
 # system time as part of kernel setup.
-
-[Install]
-WantedBy=sysinit.target
index 23866d2fb6ae1baa209b89b64109df8cee2b3aeb..067196f6f19ff410214ad7b4ad5551d14776ad6c 100644 (file)
@@ -13,6 +13,3 @@ Before=poweroff.service reboot.service halt.service killall.service
 [Service]
 Type=oneshot
 ExecStart=/sbin/hwclock --systohc
-
-[Install]
-WantedBy=shutdown.target