]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/hwclock-load.service
socket: reuse existing FIFOs
[thirdparty/systemd.git] / units / hwclock-load.service
CommitLineData
5481ab2b
LP
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]
9Description=Apply System Clock UTC Offset
10DefaultDependencies=no
4466194c 11Wants=time-sync.target
5481ab2b 12Conflicts=shutdown.target
eb8d87c1 13After=systemd-readahead-collect.service systemd-readahead-replay.service
4466194c 14Before=sysinit.target shutdown.target udev.service time-sync.target
5481ab2b
LP
15
16[Service]
17Type=oneshot
18RemainAfterExit=yes
19ExecStart=/sbin/hwclock --systz
52f319b2 20StandardOutput=syslog
5481ab2b 21
01c3a63e 22# Note the weird semantics of hwclock and the kernel here: the first
5481ab2b
LP
23# settimeofday() invocation from userspace is special and may be used
24# to set the offset from UTC of the system clock. It is independent
25# of any specific RTC device. This is mostly a crufty hack to support
26# legacy operating systems which insist on storing local time in the
27# RTC.
28
29# Note that we do not run --hctosys here, we assume the kernel
30# includes a compiled in RTC module which is used to initialize the
31# system time as part of kernel setup.
6ebf598c
KS
32
33[Install]
e096bf2f 34WantedBy=sysinit.target