]> err.no Git - systemd/commitdiff
units: rename rtc-set.target to time-sync.target and pull it in by hwclock-load.service
authorLennart Poettering <lennart@poettering.net>
Wed, 6 Apr 2011 17:18:11 +0000 (19:18 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 6 Apr 2011 17:18:17 +0000 (19:18 +0200)
On request of Miroslav Lichvar, rename rtc-set.target to
time-sync.target since usually the RTC chip isn't involved at all in NTP
syncs.

Also, pull it in by hwclock-load.service.

Makefile.am
TODO
man/systemd.special.xml.in
src/service.c
src/special.h
units/hwclock-load.service
units/time-sync.target [moved from units/rtc-set.target with 92% similarity]

index 160acfb9cf2a5c84f3d9f193bcdc12b734b04188..2f08ceb173722cad9f46dd162d4772a2cf917f43 100644 (file)
@@ -232,7 +232,7 @@ dist_systemunit_DATA = \
        units/reboot.target \
        units/rescue.target \
        units/rpcbind.target \
-       units/rtc-set.target \
+       units/time-sync.target \
        units/shutdown.target \
        units/final.target \
        units/umount.target \
diff --git a/TODO b/TODO
index aea00d2235668dee056c75e8404dabd530a50d62..470e60f4ea36df42de98c5b6fa8056088adaa07d 100644 (file)
--- a/TODO
+++ b/TODO
@@ -10,7 +10,7 @@ F15:
 * NM should pull in network.target (PENDING)
   https://bugzilla.redhat.com/show_bug.cgi?id=692008
 
-* ntpd should pull in rtc-set.target. (PENDING)
+* ntpd should pull in time-sync.target. (PENDING)
 
 * add fstab fields to add wait timeouts, change Wants to Requires by local-fs.target
 
index 804504a8335ae04d9f99241b058858938a06b2fb..efc4c32bed588c58835364e98201c06d19e0ff05 100644 (file)
@@ -68,7 +68,7 @@
                 <filename>remote-fs.target</filename>,
                 <filename>rescue.target</filename>,
                 <filename>rpcbind.target</filename>,
-                <filename>rtc-set.target</filename>,
+                <filename>time-sync.target</filename>,
                 <filename>runlevel2.target</filename>,
                 <filename>runlevel3.target</filename>,
                 <filename>runlevel4.target</filename>,
                                 </listitem>
                         </varlistentry>
                         <varlistentry>
-                                <term><filename>rtc-set.target</filename></term>
+                                <term><filename>time-sync.target</filename></term>
                                 <listitem>
                                         <para>systemd automatically
                                         adds dependencies of type
index a297cd911724540c75a1d98483139f1996559e2f..7f8d005f00882f21bfcba666cc347b3b1ed8dc9d 100644 (file)
@@ -286,7 +286,7 @@ static int sysv_translate_facility(const char *name, const char *filename, char
                 "portmap",              SPECIAL_RPCBIND_TARGET,
                 "remote_fs",            SPECIAL_REMOTE_FS_TARGET,
                 "syslog",               SPECIAL_SYSLOG_TARGET,
-                "time",                 SPECIAL_RTC_SET_TARGET,
+                "time",                 SPECIAL_TIME_SYNC_TARGET,
 
                 /* common extensions */
                 "mail-transfer-agent",  SPECIAL_MAIL_TRANSFER_AGENT_TARGET,
index 6cedf18c035e5959ed3523cfcd4bf787084955ba..08dae11a2579c610dce95ccc3fd8e2445c2ae415 100644 (file)
@@ -54,7 +54,7 @@
 #define SPECIAL_NSS_LOOKUP_TARGET "nss-lookup.target"     /* LSB's $named */
 #define SPECIAL_RPCBIND_TARGET "rpcbind.target"           /* LSB's $portmap */
 #define SPECIAL_SYSLOG_TARGET "syslog.target"             /* LSB's $syslog; Should pull in syslog.socket or syslog.service */
-#define SPECIAL_RTC_SET_TARGET "rtc-set.target"           /* LSB's $time */
+#define SPECIAL_TIME_SYNC_TARGET "time-sync.target"       /* LSB's $time */
 #define SPECIAL_DISPLAY_MANAGER_SERVICE "display-manager.service"       /* Debian's $x-display-manager */
 #define SPECIAL_MAIL_TRANSFER_AGENT_TARGET "mail-transfer-agent.target" /* Debian's $mail-{transport|transfer-agent */
 #define SPECIAL_HTTP_DAEMON_TARGET "http-daemon.target"
index 51f255e2ab9570c4875e1e80511b65f8a1ea424c..f278a671a34c37a094fb550a7263f7b73027db5e 100644 (file)
@@ -8,9 +8,10 @@
 [Unit]
 Description=Apply System Clock UTC Offset
 DefaultDependencies=no
+Wants=time-sync.target
 Conflicts=shutdown.target
 After=systemd-readahead-collect.service systemd-readahead-replay.service
-Before=sysinit.target shutdown.target udev.service
+Before=sysinit.target shutdown.target udev.service time-sync.target
 
 [Service]
 Type=oneshot
similarity index 92%
rename from units/rtc-set.target
rename to units/time-sync.target
index df4c40298c05874a433f39c4efb17ef0e6c90bf7..aa34ecb5f402c38eb6bd49added016ab708ed97a 100644 (file)
@@ -11,4 +11,4 @@
 # implementations lacking socket/bus activation.
 
 [Unit]
-Description=RTC Set
+Description=System Time Synchronized