diff options
author | Chris Down <chris@chrisdown.name> | 2017-12-18 07:53:29 +0000 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-12-18 08:53:29 +0100 |
commit | e16647c39d195804711a006667d5bce49c0ef73d (patch) | |
tree | 3d773c3231ffd4cf2405af1080dfb57307eed426 /src/shared/condition.h | |
parent | 292599e2ad2314fbf3a18d5f8371c6663fd58421 (diff) | |
download | systemd-e16647c39d195804711a006667d5bce49c0ef73d.tar.gz |
condition: Create AssertControlGroupController (#7630)
Up until now, the behaviour in systemd has (mostly) been to silently
ignore failures to action unit directives that refer to an unavailble
controller. The addition of AssertControlGroupController and its
conditional counterpart allow explicit specification of the desired
behaviour when such a situation occurs.
As for how this can happen, it is possible that a particular controller
is not available in the cgroup hierarchy. One possible reason for this
is that, in the running kernel, the controller simply doesn't exist --
for example, the CPU controller in cgroup v2 has only recently been
merged and was out of tree until then. Another possibility is that the
controller exists, but has been forcibly disabled by `cgroup_disable=`
on the kernel command line.
In future this will also support whatever comes out of issue #7624,
`DefaultXAccounting=never`, or similar.
Diffstat (limited to 'src/shared/condition.h')
-rw-r--r-- | src/shared/condition.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/condition.h b/src/shared/condition.h index 534906b6d6..715866be70 100644 --- a/src/shared/condition.h +++ b/src/shared/condition.h @@ -53,6 +53,8 @@ typedef enum ConditionType { CONDITION_USER, CONDITION_GROUP, + CONDITION_CONTROL_GROUP_CONTROLLER, + _CONDITION_TYPE_MAX, _CONDITION_TYPE_INVALID = -1 } ConditionType; |