summaryrefslogtreecommitdiff
path: root/src/core/job.c
diff options
context:
space:
mode:
authorPeter Morrow <pemorrow@linux.microsoft.com>2021-09-16 12:21:20 +0100
committerPeter Morrow <pemorrow@linux.microsoft.com>2021-09-24 14:43:01 +0100
commit9dfb6a3a8e1183a7988691377fe7bf747ff38bc0 (patch)
treef64c22ecc629d85cb7672c093fcc056bf04ad300 /src/core/job.c
parent37eb7108fbe67550e92ed97e092fc0507bd4b4b1 (diff)
downloadsystemd-9dfb6a3a8e1183a7988691377fe7bf747ff38bc0.tar.gz
cgroup: re-evaluate startup units during shutdown as well
Apply startup cgroup configuration options to the shutdown phase as well. I.e. all directives prefixed with Startup are applied during boot and shutdown. For example: StartupAllowedCPU= applies during boot and shutdown. AllowedCPUs= applies during normal runtime.
Diffstat (limited to 'src/core/job.c')
-rw-r--r--src/core/job.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/job.c b/src/core/job.c
index 6eb135785b..6dd01a6f49 100644
--- a/src/core/job.c
+++ b/src/core/job.c
@@ -1335,6 +1335,8 @@ void job_shutdown_magic(Job *j) {
/* In case messages on console has been disabled on boot */
j->unit->manager->no_console_output = false;
+ manager_invalidate_startup_units(j->unit->manager);
+
if (detect_container() > 0)
return;