mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
core: failed scope units may not be restarted
We don't allow reusing of scopes.
This commit is contained in:
2
TODO
2
TODO
@@ -58,6 +58,8 @@ CGroup Rework Completion:
|
||||
|
||||
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.
|
||||
|
||||
* better error message if you run systemctl without systemd running
|
||||
|
||||
@@ -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