diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-04-07 18:47:11 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-04-07 18:47:11 +0200 |
commit | ffd73e3599ea2a97c03c1765cd4bc94ebc152f89 (patch) | |
tree | fc25a1e182ffa3f1224cf4598fb04dcc340ef018 | |
parent | 01d67b43b067c39aec0a66b31943658c95cc56a1 (diff) |
unit: pull in logger unit only when running in system mode
-rw-r--r-- | src/unit.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/unit.c b/src/unit.c index 90773e894f..e5a9623528 100644 --- a/src/unit.c +++ b/src/unit.c @@ -567,11 +567,8 @@ int unit_add_exec_dependencies(Unit *u, ExecContext *c) { /* If syslog or kernel logging is requested, make sure our own * logging daemon is run first. */ - if ((r = unit_add_dependency_by_name(u, UNIT_AFTER, SPECIAL_LOGGER_SOCKET, NULL, true)) < 0) - return r; - if (u->meta.manager->running_as == MANAGER_SYSTEM) - if ((r = unit_add_dependency_by_name(u, UNIT_REQUIRES, SPECIAL_LOGGER_SOCKET, NULL, true)) < 0) + if ((r = unit_add_two_dependencies_by_name(u, UNIT_REQUIRES, UNIT_AFTER, SPECIAL_LOGGER_SOCKET, NULL, true)) < 0) return r; return 0; |