X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fload-fragment.c;h=88fedceea197b06c8aca87f7bfd0787dd874a80a;hp=7a51bf81c811b46000b111515b49de5703cc4f2e;hb=c952c6ece28b6c0f774f823c917f458fe3424993;hpb=e55224ca655e6c4ec745a84ae5a051a9e6e5f74f diff --git a/src/load-fragment.c b/src/load-fragment.c index 7a51bf81c..88fedceea 100644 --- a/src/load-fragment.c +++ b/src/load-fragment.c @@ -1204,6 +1204,8 @@ finish: return r; } +DEFINE_CONFIG_PARSE_ENUM(config_parse_notify_access, notify_access, NotifyAccess, "Failed to parse notify access specifier"); + #define FOLLOW_MAX 8 static int open_follow(char **filename, FILE **_f, Set *names, char **_final) { @@ -1360,6 +1362,9 @@ static void dump_items(FILE *f, const ConfigItem *items) { { config_parse_description, "DESCRIPTION" }, { config_parse_timer, "TIMER" }, { config_parse_timer_unit, "NAME" }, + { config_parse_path_spec, "PATH" }, + { config_parse_path_unit, "UNIT" }, + { config_parse_notify_access, "ACCESS" } }; assert(f); @@ -1491,6 +1496,7 @@ static int load_from_path(Unit *u, const char *path) { { "KillMode", config_parse_kill_mode, &u->service.kill_mode, "Service" }, { "NonBlocking", config_parse_bool, &u->service.exec_context.non_blocking, "Service" }, { "BusName", config_parse_string, &u->service.bus_name, "Service" }, + { "NotifyAccess", config_parse_notify_access, &u->service.notify_access, "Service" }, EXEC_CONTEXT_CONFIG_ITEMS(u->service.exec_context, "Service"), { "ListenStream", config_parse_listen, &u->socket, "Socket" },