diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-03-25 21:20:08 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-03-25 21:28:30 +0100 |
commit | e3d84721dc9bcf9008f72dae03ff0f7842d0bb4b (patch) | |
tree | 2f62446a9d8961872060346793f788e3cac366fd /src/core/timer.c | |
parent | 1b036593b76614dd05942a78120c151161cccc0f (diff) |
units: introduce new timers.target and paths.target to hook timer/path units into for boot
Diffstat (limited to 'src/core/timer.c')
-rw-r--r-- | src/core/timer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/timer.c b/src/core/timer.c index d98468fd9e..16b49174d3 100644 --- a/src/core/timer.c +++ b/src/core/timer.c @@ -96,11 +96,11 @@ static int timer_add_default_dependencies(Timer *t) { assert(t); - if (UNIT(t)->manager->running_as == SYSTEMD_SYSTEM) { - r = unit_add_dependency_by_name(UNIT(t), UNIT_BEFORE, SPECIAL_BASIC_TARGET, NULL, true); - if (r < 0) - return r; + r = unit_add_dependency_by_name(UNIT(t), UNIT_BEFORE, SPECIAL_TIMERS_TARGET, NULL, true); + if (r < 0) + return r; + if (UNIT(t)->manager->running_as == SYSTEMD_SYSTEM) { r = unit_add_two_dependencies_by_name(UNIT(t), UNIT_AFTER, UNIT_REQUIRES, SPECIAL_SYSINIT_TARGET, NULL, true); if (r < 0) return r; |