chiark / gitweb /
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 a3c9950..b4f82a3 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 646749e..1bfab50 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;