chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
01d67b4
)
unit: pull in logger unit only when running in system mode
author
Lennart Poettering
<lennart@poettering.net>
Thu, 7 Apr 2011 16:47:11 +0000
(18:47 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 7 Apr 2011 16:47:11 +0000
(18:47 +0200)
src/unit.c
patch
|
blob
|
history
diff --git
a/src/unit.c
b/src/unit.c
index 90773e894f55891c6133c44f0f1328c7f7550068..e5a9623528478504c2b038e221d53adc8cf0507b 100644
(file)
--- 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 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 (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;
return r;
return 0;