summaryrefslogtreecommitdiff
path: root/src/core/swap.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-01-19 01:01:41 +0100
committerLennart Poettering <lennart@poettering.net>2013-01-19 01:02:30 +0100
commit71645acac27da55d510f2e4d61cc61b4e5b93035 (patch)
treebe5b435bb0c0ccaeee51b69beae571ddd3b5efd4 /src/core/swap.c
parente884315e3d28df0d5f4e7d4590730e9760b8f447 (diff)
unit: optionally allow making cgroup attribute changes persistent
Diffstat (limited to 'src/core/swap.c')
-rw-r--r--src/core/swap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/swap.c b/src/core/swap.c
index c8e25d0665..a2f11875a2 100644
--- a/src/core/swap.c
+++ b/src/core/swap.c
@@ -1382,13 +1382,15 @@ DEFINE_STRING_TABLE_LOOKUP(swap_result, SwapResult);
const UnitVTable swap_vtable = {
.object_size = sizeof(Swap),
- .exec_context_offset = offsetof(Swap, exec_context),
.sections =
"Unit\0"
"Swap\0"
"Install\0",
+ .exec_context_offset = offsetof(Swap, exec_context),
+ .exec_section = "Swap",
+
.no_alias = true,
.no_instances = true,