chiark / gitweb /
gentoo: vconsole-setup support.
[elogind.git] / units / hwclock-load.service
1 #  This file is part of systemd.
2 #
3 #  systemd is free software; you can redistribute it and/or modify it
4 #  under the terms of the GNU General Public License as published by
5 #  the Free Software Foundation; either version 2 of the License, or
6 #  (at your option) any later version.
7
8 [Unit]
9 Description=Apply System Clock UTC Offset
10 DefaultDependencies=no
11 Conflicts=shutdown.target
12 Before=shutdown.target udev.service
13
14 [Service]
15 Type=oneshot
16 RemainAfterExit=yes
17 ExecStart=/sbin/hwclock --systz
18
19 # Note the weird semantics if hwclock and the kernel here: the first
20 # settimeofday() invocation from userspace is special and may be used
21 # to set the offset from UTC of the system clock. It is independent
22 # of any specific RTC device. This is mostly a crufty hack to support
23 # legacy operating systems which insist on storing local time in the
24 # RTC.
25
26 # Note that we do not run --hctosys here, we assume the kernel
27 # includes a compiled in RTC module which is used to initialize the
28 # system time as part of kernel setup.
29
30 [Install]
31 WantedBy=sysinit.target