service: allow input from terminal when executing more than one start-pre or stop-post command

This commit is contained in:
Lennart Poettering 2010-07-12 21:56:51 +02:00
parent 85d73053f2
commit 5830833f7c
1 changed files with 2 additions and 1 deletions

View 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;