summaryrefslogtreecommitdiff
path: root/src/shared/path-lookup.h
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
parent5f0a41dade626da20000890807bc61f5d4359fb5 (diff)
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 078c3484f5..b0603c0c99 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;
};