summaryrefslogtreecommitdiff
path: root/src/core/scope.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-02-24 23:50:10 +0100
committerLennart Poettering <lennart@poettering.net>2014-02-24 23:50:10 +0100
commit085afe36cb823e7d5b8c5f3ef21ebb9639bac78b (patch)
tree25b26a8b92d8562983b22098d0dfe5777efc8927 /src/core/scope.c
parent4e72e29a390e0bd9226eb802d80b9a9c259565cd (diff)
core: add global settings for enabling CPUAccounting=, MemoryAccounting=, BlockIOAccounting= for all units at once
Diffstat (limited to 'src/core/scope.c')
-rw-r--r--src/core/scope.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/scope.c b/src/core/scope.c
index 16758fed0a..be2a637023 100644
--- a/src/core/scope.c
+++ b/src/core/scope.c
@@ -54,6 +54,8 @@ static void scope_init(Unit *u) {
cgroup_context_init(&s->cgroup_context);
kill_context_init(&s->kill_context);
+ unit_cgroup_context_init_defaults(u, &s->cgroup_context);
+
UNIT(s)->ignore_on_isolate = true;
UNIT(s)->ignore_on_snapshot = true;
}