core: failed scope units may not be restarted
We don't allow reusing of scopes.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user