]> err.no Git - systemd/commitdiff
service: refuse to start services that are configured for per-connection instantiatio...
authorLennart Poettering <lennart@poettering.net>
Fri, 16 Jul 2010 17:41:11 +0000 (19:41 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 16 Jul 2010 17:41:11 +0000 (19:41 +0200)
fixme
src/service.c

diff --git a/fixme b/fixme
index a3c99500c7d05680bd9ff64405f2690c294308d3..b4f82a3c9d53410720660ec951b87cce921f8e87 100644 (file)
--- a/fixme
+++ b/fixme
 
 * debian deadlock when partition auf noauto is.
 
+* maintenance units müssen vergessen werden
+
+* maintenance muss dokumentiert werden
+
 External:
 
 * patch /etc/init.d/functions with:
index 646749ed9c85ff78ee82b40195a0e71b9b12cf5a..1bfab5013d0cfe2cfb61a74d7cd5c453a1191ac8 100644 (file)
@@ -1896,6 +1896,14 @@ static int service_start(Unit *u) {
                 return -ECANCELED;
         }
 
+        if ((s->exec_context.std_input == EXEC_INPUT_SOCKET ||
+             s->exec_context.std_output == EXEC_OUTPUT_SOCKET ||
+             s->exec_context.std_error == EXEC_OUTPUT_SOCKET) &&
+            s->socket_fd < 0) {
+                log_warning("%s can only be started with a per-connection socket.", u->meta.id);
+                return -EINVAL;
+        }
+
         s->failure = false;
         s->main_pid_known = false;
         s->allow_restart = true;