summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-09-23 17:42:21 +0200
committerLennart Poettering <lennart@poettering.net>2011-09-23 17:42:21 +0200
commit4e2b0f9b149e6fc1adb5ce49a6adaeed130577be (patch)
tree282be7ae0f7adcc6df8a60e1d5a992c710bb3a0d
parent5dc4c17fd5d5e8e48c58ded09a372ad2ac21b26d (diff)
service: fix up std output/error before we add dependencies to the bridge socket
-rw-r--r--src/service.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/service.c b/src/service.c
index 2ae8785ac4..c2053ce3ac 100644
--- a/src/service.c
+++ b/src/service.c
@@ -1145,6 +1145,8 @@ static int service_load(Unit *u) {
/* This is a new unit? Then let's add in some extras */
if (u->meta.load_state == UNIT_LOADED) {
+ service_fix_output(s);
+
if ((r = unit_add_exec_dependencies(u, &s->exec_context)) < 0)
return r;
@@ -1173,8 +1175,6 @@ static int service_load(Unit *u) {
if (s->meta.default_dependencies)
if ((r = service_add_default_dependencies(s)) < 0)
return r;
-
- service_fix_output(s);
}
return service_verify(s);