diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-03-03 17:14:07 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-03-03 17:55:32 +0100 |
commit | e66cf1a3f94fff48a572f6dbd19b43c9bcf7b8c7 (patch) | |
tree | e3580f7a1e9aaca01ada8575a1ea50a7a32dd2d3 /src/core/mount.c | |
parent | execute: no need to include seccomp.h from execute.h (diff) | |
download | systemd-e66cf1a3f94fff48a572f6dbd19b43c9bcf7b8c7.tar.xz systemd-e66cf1a3f94fff48a572f6dbd19b43c9bcf7b8c7.zip |
core: introduce new RuntimeDirectory= and RuntimeDirectoryMode= unit settings
As discussed on the ML these are useful to manage runtime directories
below /run for services.
Diffstat (limited to 'src/core/mount.c')
-rw-r--r-- | src/core/mount.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/mount.c b/src/core/mount.c index 7a92e1ca60..60067d4d75 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -788,6 +788,7 @@ static int mount_spawn(Mount *m, ExecCommand *c, pid_t *_pid) { UNIT(m)->manager->confirm_spawn, UNIT(m)->manager->cgroup_supported, UNIT(m)->cgroup_path, + manager_get_runtime_prefix(UNIT(m)->manager), UNIT(m)->id, 0, NULL, @@ -820,6 +821,8 @@ static void mount_enter_dead(Mount *m, MountResult f) { exec_runtime_destroy(m->exec_runtime); m->exec_runtime = exec_runtime_unref(m->exec_runtime); + exec_context_destroy_runtime_directory(&m->exec_context, manager_get_runtime_prefix(UNIT(m)->manager)); + mount_set_state(m, m->result != MOUNT_SUCCESS ? MOUNT_FAILED : MOUNT_DEAD); } |