]> err.no Git - systemd/commitdiff
service: fix up std output/error before we add dependencies to the bridge socket
authorLennart Poettering <lennart@poettering.net>
Fri, 23 Sep 2011 15:42:21 +0000 (17:42 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 23 Sep 2011 15:42:21 +0000 (17:42 +0200)
src/service.c

index 2ae8785ac4e484f13fe21d8fa25beac85752a1b4..c2053ce3ac45e8d829bc232e28c52e4e61f748a2 100644 (file)
@@ -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);