aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-02-25 01:13:57 +0100
committerLennart Poettering <lennart@poettering.net>2016-04-12 13:43:30 +0200
commit39591351391de3ef2fd23cc5aea5bdd6ab712db6 (patch)
treed251464ea9f8e7eb139ee4824a115decb407ed40 /src/shared/path-lookup.h
parentpath-lookup: add configured unit paths back into search path (diff)
downloadsystemd-39591351391de3ef2fd23cc5aea5bdd6ab712db6.tar.gz
systemd-39591351391de3ef2fd23cc5aea5bdd6ab712db6.tar.bz2
systemd-39591351391de3ef2fd23cc5aea5bdd6ab712db6.zip
core: add a separate unit directory for transient units
Previously, transient units were created below the normal runtime directory /run/systemd/system. With this change they are created in a special transient directory /run/systemd/transient, which only contains data for transient units. This clarifies the life-cycle of transient units, and makes clear they are distinct from user-provided runtime units. In particular, users may now extend transient units via /run/systemd/system, without systemd interfering with the life-cycle of these files. This change also adds code so that when a transient unit exits only the drop-ins in this new directory are removed, but nothing else. Fixes: #2139
Diffstat (limited to 'src/shared/path-lookup.h')
-rw-r--r--src/shared/path-lookup.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/path-lookup.h b/src/shared/path-lookup.h
index 078c3484f..b0603c0c9 100644
--- a/src/shared/path-lookup.h
+++ b/src/shared/path-lookup.h
@@ -38,6 +38,9 @@ struct LookupPaths {
char *generator_early;
char *generator_late;
+ /* Where to place transient unit files */
+ char *transient;
+
/* The root directory prepended to all items above, or NULL */
char *root_dir;
};