summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-12 21:56:51 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-12 21:56:51 +0200
commit5830833f7c09b7584f59d048cf8535dc42ea9846 (patch)
treebc681c4f218e28bcbbd0b732303c0157d90fdbe3 /src
parent85d73053f2eb6c3cfff18d184e13b0d536e34c17 (diff)
service: allow input from terminal when executing more than one start-pre or stop-post command
Diffstat (limited to 'src')
-rw-r--r--src/service.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c
index 47108503dd..646749ed9c 100644
--- a/src/service.c
+++ b/src/service.c
@@ -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;