chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
log: rework logging logic so that we don't keep /dev/console open
[elogind.git]
/
load-fragment.c
diff --git
a/load-fragment.c
b/load-fragment.c
index 0dfb49f1138f81d548f61bfe1336ae3c74ed5982..deebba3e82f34bb11c0c1aec85048e48c8200fb5 100644
(file)
--- a/
load-fragment.c
+++ b/
load-fragment.c
@@
-1171,7
+1171,8
@@
static int load_from_path(Unit *u, const char *path) {
[UNIT_DEVICE] = "Device",
[UNIT_MOUNT] = "Mount",
[UNIT_AUTOMOUNT] = "Automount",
[UNIT_DEVICE] = "Device",
[UNIT_MOUNT] = "Mount",
[UNIT_AUTOMOUNT] = "Automount",
- [UNIT_SNAPSHOT] = "Snapshot"
+ [UNIT_SNAPSHOT] = "Snapshot",
+ [UNIT_SWAP] = "Swap"
};
#define EXEC_CONTEXT_CONFIG_ITEMS(context, section) \
};
#define EXEC_CONTEXT_CONFIG_ITEMS(context, section) \
@@
-1286,6
+1287,9
@@
static int load_from_path(Unit *u, const char *path) {
{ "Where", config_parse_path, &u->automount.where, "Automount" },
{ "Where", config_parse_path, &u->automount.where, "Automount" },
+ { "What", config_parse_path, &u->swap.parameters_fragment.what, "Swap" },
+ { "Priority", config_parse_int, &u->swap.parameters_fragment.priority, "Swap" },
+
{ NULL, NULL, NULL, NULL }
};
{ NULL, NULL, NULL, NULL }
};