]> err.no Git - systemd/commitdiff
swap: add default cgroup to swap exec env
authorLennart Poettering <lennart@poettering.net>
Tue, 26 Oct 2010 20:06:11 +0000 (22:06 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 26 Oct 2010 20:06:11 +0000 (22:06 +0200)
src/swap.c

index f7f9530a03963daf34df4c5cb1bcdb4f1e012335..abd8cdd8d68f892e2d0b87c03adcf1430f1f0c7e 100644 (file)
@@ -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;