chiark / gitweb /
core: parse Slice= from the unit type specific unit file section
authorLennart Poettering <lennart@poettering.net>
Mon, 1 Jul 2013 00:52:17 +0000 (02:52 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 1 Jul 2013 00:52:17 +0000 (02:52 +0200)
Since not all unit types know Slice= it belongs in the unit type
specific unit file section.

TODO
src/core/load-fragment-gperf.gperf.m4

diff --git a/TODO b/TODO
index 279446e6e01c9da2f51219fe5cc5b405103ee5d4..e8afa5f3df90ab66cdc5de6ff10e93d4e33f263e 100644 (file)
--- a/TODO
+++ b/TODO
@@ -36,6 +36,8 @@ Features:
 
 * split up BlockIOWeight= and BlockIODeviceWeight=
 
+* introduce high-level settings for RT budget, swapiness
+
 * how to reset dynamically changed attributes sanely?
 
 * when reloading configuration, apply new cgroup configuration
@@ -48,10 +50,8 @@ Features:
 
 * split out CreateMachine into systemd-machined
 
-* introduce new Scope unit type then make logind's session and machine
-  registration use this to set up cgroups
-
-* should Slice= be part of [Unit] or of [Service]?
+* make logind's session and machine
+  registration use Slices to set up cgroups
 
 * journald: make sure ratelimit is actually really per-service with the new cgroup changes
 
index aa07de0517ada702850c3809dd21146fb7d32fce..2325d6aa9a2f1e8f26d865b41526cef73d569b7d 100644 (file)
@@ -83,7 +83,8 @@ $1.KillMode,                     config_parse_kill_mode,             0,
 $1.KillSignal,                   config_parse_kill_signal,           0,                             offsetof($1, kill_context.kill_signal)'
 )m4_dnl
 m4_define(`CGROUP_CONTEXT_CONFIG_ITEMS',
-`$1.CPUAccounting,               config_parse_bool,                  0,                             offsetof($1, cgroup_context.cpu_accounting)
+`$1.Slice,                       config_parse_unit_slice,            0,                             0
+$1.CPUAccounting,                config_parse_bool,                  0,                             offsetof($1, cgroup_context.cpu_accounting)
 $1.CPUShares,                    config_parse_cpu_shares,            0,                             offsetof($1, cgroup_context)
 $1.MemoryAccounting,             config_parse_bool,                  0,                             offsetof($1, cgroup_context.memory_accounting)
 $1.MemoryLimit,                  config_parse_memory_limit,          0,                             offsetof($1, cgroup_context)
@@ -124,7 +125,6 @@ Unit.OnFailureIsolate,           config_parse_bool,                  0,
 Unit.IgnoreOnIsolate,            config_parse_bool,                  0,                             offsetof(Unit, ignore_on_isolate)
 Unit.IgnoreOnSnapshot,           config_parse_bool,                  0,                             offsetof(Unit, ignore_on_snapshot)
 Unit.JobTimeoutSec,              config_parse_sec,                   0,                             offsetof(Unit, job_timeout)
-Unit.Slice,                      config_parse_unit_slice,            0,                             0
 Unit.ConditionPathExists,        config_parse_unit_condition_path,   CONDITION_PATH_EXISTS,         0
 Unit.ConditionPathExistsGlob,    config_parse_unit_condition_path,   CONDITION_PATH_EXISTS_GLOB,    0
 Unit.ConditionPathIsDirectory,   config_parse_unit_condition_path,   CONDITION_PATH_IS_DIRECTORY,   0