Commit cac6f7c8 authored by Lennart Poettering's avatar Lennart Poettering
Browse files

service: refuse to start services that are configured for per-connection...

service: refuse to start services that are configured for per-connection instantiation to start without a socket
parent 276c3e78
......@@ -65,6 +65,10 @@
* debian deadlock when partition auf noauto is.
* maintenance units müssen vergessen werden
* maintenance muss dokumentiert werden
External:
* patch /etc/init.d/functions with:
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment