]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/unit.c
core: add a separate unit directory for transient units
authorLennart Poettering <lennart@poettering.net>
Thu, 25 Feb 2016 00:13:57 +0000 (01:13 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Apr 2016 11:43:30 +0000 (13:43 +0200)
commit39591351391de3ef2fd23cc5aea5bdd6ab712db6
treed251464ea9f8e7eb139ee4824a115decb407ed40
parent5f0a41dade626da20000890807bc61f5d4359fb5
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
src/core/manager.c
src/core/unit.c
src/shared/path-lookup.c
src/shared/path-lookup.h