mirror of
https://github.com/systemd/systemd.git
synced 2024-12-28 11:21:59 +03:00
swap: add default cgroup to swap exec env
This commit is contained in:
parent
15412f2987
commit
f1a1cd6497
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user