core: failed scope units may not be restarted
We don't allow reusing of scopes.
This commit is contained in:
parent
44ded3abc2
commit
7b617155b5
2
TODO
2
TODO
|
@ -58,6 +58,8 @@ CGroup Rework Completion:
|
||||||
|
|
||||||
Features:
|
Features:
|
||||||
|
|
||||||
|
* ensure scope units may be started only a single time
|
||||||
|
|
||||||
* document that in instead of FsckPassNo= people should just add a manual dep to systemd-fsck@.service to their mount units.
|
* document that in instead of FsckPassNo= people should just add a manual dep to systemd-fsck@.service to their mount units.
|
||||||
|
|
||||||
* better error message if you run systemctl without systemd running
|
* better error message if you run systemctl without systemd running
|
||||||
|
|
|
@ -239,6 +239,9 @@ static int scope_start(Unit *u) {
|
||||||
|
|
||||||
assert(s);
|
assert(s);
|
||||||
|
|
||||||
|
if (s->state == SCOPE_FAILED)
|
||||||
|
return -EPERM;
|
||||||
|
|
||||||
if (s->state == SCOPE_STOP_SIGTERM ||
|
if (s->state == SCOPE_STOP_SIGTERM ||
|
||||||
s->state == SCOPE_STOP_SIGKILL)
|
s->state == SCOPE_STOP_SIGKILL)
|
||||||
return -EAGAIN;
|
return -EAGAIN;
|
||||||
|
|
Loading…
Reference in New Issue