summaryrefslogtreecommitdiff
path: root/src/load-fragment.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-04-10 01:30:14 +0200
committerLennart Poettering <lennart@poettering.net>2011-04-10 01:30:14 +0200
commit0e456f978134100d2e0cc28c7205b3abefcc9cde (patch)
treeb63684ac36702f88f7fd1ceeaad4021f5f30d04d /src/load-fragment.c
parentbfe95f35bf87c91d63b9d62dde5f029dd38d27a4 (diff)
path: optionally, create watched directories in .path units
Diffstat (limited to 'src/load-fragment.c')
-rw-r--r--src/load-fragment.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/load-fragment.c b/src/load-fragment.c
index c27c9d8477..aac27b56ed 100644
--- a/src/load-fragment.c
+++ b/src/load-fragment.c
@@ -1944,6 +1944,8 @@ static int load_from_path(Unit *u, const char *path) {
{ "PathChanged", config_parse_path_spec, 0, &u->path, "Path" },
{ "DirectoryNotEmpty", config_parse_path_spec, 0, &u->path, "Path" },
{ "Unit", config_parse_path_unit, 0, &u->path, "Path" },
+ { "MakeDirectory", config_parse_bool, 0, &u->path.make_directory, "Path" },
+ { "DirectoryMode", config_parse_mode, 0, &u->path.directory_mode, "Path" },
/* The [Install] section is ignored here. */
{ "Alias", NULL, 0, NULL, "Install" },