summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-10-26 22:06:11 +0200
committerLennart Poettering <lennart@poettering.net>2010-10-26 22:06:11 +0200
commitf1a1cd6497a970a8744b6d71cf5355fa9f75669c (patch)
treecacf08bc3efe996ec9e2f2ef50eeeda31629d5f0 /src
parent15412f2987c0f0a562f9cf8edcca023f90a5f5bd (diff)
swap: add default cgroup to swap exec env
Diffstat (limited to 'src')
-rw-r--r--src/swap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/swap.c b/src/swap.c
index f7f9530a03..abd8cdd8d6 100644
--- a/src/swap.c
+++ b/src/swap.c
@@ -283,7 +283,6 @@ static int swap_load(Unit *u) {
if ((r = unit_set_description(u, s->what)) < 0)
return r;
-
if ((r = swap_add_device_links(s)) < 0)
return r;
@@ -293,6 +292,9 @@ static int swap_load(Unit *u) {
if ((r = swap_add_target_links(s)) < 0)
return r;
+ if ((r = unit_add_default_cgroup(u)) < 0)
+ return r;
+
if (s->meta.default_dependencies)
if ((r = swap_add_default_dependencies(s)) < 0)
return r;