2010-08-18 07:24:31 +07:00
|
|
|
# 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=Apply System Clock UTC Offset
|
|
|
|
DefaultDependencies=no
|
|
|
|
Conflicts=shutdown.target
|
2010-11-16 09:32:54 +07:00
|
|
|
After=systemd-readahead-collect.service systemd-readahead-replay.service
|
2010-11-19 22:24:21 +07:00
|
|
|
Before=sysinit.target shutdown.target udev.service
|
2010-08-18 07:24:31 +07:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=yes
|
|
|
|
ExecStart=/sbin/hwclock --systz
|
2010-10-20 22:48:01 +07:00
|
|
|
StandardOutput=syslog
|
2010-08-18 07:24:31 +07:00
|
|
|
|
2010-12-18 08:45:12 +07:00
|
|
|
# Note the weird semantics of hwclock and the kernel here: the first
|
2010-08-18 07:24:31 +07:00
|
|
|
# settimeofday() invocation from userspace is special and may be used
|
|
|
|
# to set the offset from UTC of the system clock. It is independent
|
|
|
|
# of any specific RTC device. This is mostly a crufty hack to support
|
|
|
|
# legacy operating systems which insist on storing local time in the
|
|
|
|
# RTC.
|
|
|
|
|
|
|
|
# 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.
|
2010-09-22 17:00:07 +07:00
|
|
|
|
|
|
|
[Install]
|
2010-11-19 22:24:21 +07:00
|
|
|
WantedBy=sysinit.target
|