mirror of
https://github.com/systemd/systemd.git
synced 2024-10-31 16:21:26 +03:00
slice, scope: IgnoreOnIsolate=yes is already the default
`IgnoreOnIsolate=yes` is the default for slices and scopes. So it's not essential to set it on root.slice or init.scope. We don't need to worry about a bad unit file configuration. Any attempt to stop these unit should fail, since we mark them as `perpetual`. Also since init.scope cannot be stopped, there is no point setting `KillSignal=SIGRTMIN+14`. According to both documentation and testing, KillSignal= does not affect the behaviour of `systemctl kill`.
This commit is contained in:
parent
22bc57c58a
commit
0c79456781
@ -163,9 +163,6 @@ static int scope_load_init_scope(Unit *u) {
|
|||||||
* synthesize it here, instead of relying on the unit file on disk. */
|
* synthesize it here, instead of relying on the unit file on disk. */
|
||||||
|
|
||||||
u->default_dependencies = false;
|
u->default_dependencies = false;
|
||||||
u->ignore_on_isolate = true;
|
|
||||||
|
|
||||||
SCOPE(u)->kill_context.kill_signal = SIGRTMIN+14;
|
|
||||||
|
|
||||||
/* Prettify things, if we can. */
|
/* Prettify things, if we can. */
|
||||||
if (!u->description)
|
if (!u->description)
|
||||||
|
@ -137,7 +137,6 @@ static int slice_load_root_slice(Unit *u) {
|
|||||||
* special semantics we synthesize it here, instead of relying on the unit file on disk. */
|
* special semantics we synthesize it here, instead of relying on the unit file on disk. */
|
||||||
|
|
||||||
u->default_dependencies = false;
|
u->default_dependencies = false;
|
||||||
u->ignore_on_isolate = true;
|
|
||||||
|
|
||||||
if (!u->description)
|
if (!u->description)
|
||||||
u->description = strdup("Root Slice");
|
u->description = strdup("Root Slice");
|
||||||
|
Loading…
Reference in New Issue
Block a user