diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/scope.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/scope.c b/src/core/scope.c index 20a969d913..b94f3ff7ba 100644 --- a/src/core/scope.c +++ b/src/core/scope.c @@ -239,6 +239,9 @@ static int scope_start(Unit *u) { assert(s); + if (s->state == SCOPE_FAILED) + return -EPERM; + if (s->state == SCOPE_STOP_SIGTERM || s->state == SCOPE_STOP_SIGKILL) return -EAGAIN; |