summaryrefslogtreecommitdiffstats
path: root/units/basic.target
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-11-02 17:39:17 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-11-02 18:33:54 +0100
commit3b0217036040a6013faeab4eb9da7469e3bbcfb3 (patch)
tree626b7a98ae5cf562795778b8491e75a403753a31 /units/basic.target
parentmanager: do not print timing when running in test mode (diff)
downloadsystemd-3b0217036040a6013faeab4eb9da7469e3bbcfb3.tar.xz
systemd-3b0217036040a6013faeab4eb9da7469e3bbcfb3.zip
unit: do not order timers.target before basic.target
Since commit 19f8d037833f2 'timer: order OnCalendar units after timer-sync.target if DefaultDependencies=no' timers might get a dependency on time-sync.target, which does not really belong in early boot. If ntp is enabled, time-sync.target might be delayed until a network connection is established. It turns out that majority of timer units found in the wild do not need to be started in early boot. Out of the timer units available in Fedora 21, only systemd-readahead-done.timer and mdadm-last-resort@.timer should be started early, but they both have DefaultDependencies=no, so are not part of timers.target anyway. All the rest look like they will be fine with being started a bit later (and the majority even much later, since they run daily or weekly). Let timers.target be pulled in by basic.target, but without the temporal dependency. This means timer units are started on a "best effort" schedule. https://bugzilla.redhat.com/show_bug.cgi?id=1158206
Diffstat (limited to 'units/basic.target')
-rw-r--r--units/basic.target5
1 files changed, 4 insertions, 1 deletions
diff --git a/units/basic.target b/units/basic.target
index 228f62c4b1..eee3e6b774 100644
--- a/units/basic.target
+++ b/units/basic.target
@@ -8,8 +8,11 @@
[Unit]
Description=Basic System
Documentation=man:systemd.special(7)
+
Requires=sysinit.target
+After=sysinit.target
Wants=sockets.target timers.target paths.target slices.target
-After=sysinit.target sockets.target timers.target paths.target slices.target
+After=sockets.target paths.target slices.target
+
JobTimeoutSec=15min
JobTimeoutAction=poweroff-force