chiark / gitweb /
service: allow input from terminal when executing more than one start-pre or stop...
authorLennart Poettering <lennart@poettering.net>
Mon, 12 Jul 2010 19:56:51 +0000 (21:56 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 12 Jul 2010 19:56:51 +0000 (21:56 +0200)
src/service.c

index 4710850..646749e 100644 (file)
@@ -1846,7 +1846,8 @@ static void service_run_next(Service *s, bool success) {
                                false,
                                !s->permissions_start_only,
                                !s->root_directory_start_only,
-                               false,
+                               s->control_command_id == SERVICE_EXEC_START_PRE ||
+                               s->control_command_id == SERVICE_EXEC_STOP_POST,
                                false,
                                &s->control_pid)) < 0)
                 goto fail;