From a9a50bd68089cda36dadf8695565b135c9e21143 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 3 Jul 2019 14:00:48 +0100 Subject: [PATCH] man: Add some notes about variable $prefix for StateDirectory= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tl;dr: It isn’t supported. Wording by Zbigniew Jędrzejewski-Szmek. See https://twitter.com/pid_eins/status/1102639279614906369 and https://gitlab.freedesktop.org/libfprint/fprintd/merge_requests/5#note_125536 onwards. Signed-off-by: Philip Withnall --- man/systemd.exec.xml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/man/systemd.exec.xml b/man/systemd.exec.xml index bacd539b15..56a029a82e 100644 --- a/man/systemd.exec.xml +++ b/man/systemd.exec.xml @@ -972,6 +972,15 @@ CapabilityBoundingSet=~CAP_B CAP_C configuration or lifetime guarantees, please consider using tmpfiles.d5. + The directories defined by these options are always created under the standard paths used by systemd + (/var, /run, /etc, …). If the service needs + directories in a different location, a different mechanism has to be used to create them. + + tmpfiles.d5 provides + functionality that overlaps with these options. Using these options is recommended, because the lifetime of + the directories is tied directly to the lifetime of the unit, and it is not necessary to ensure that the + tmpfiles.d configuration is executed before the unit is started. + Example: if a system service unit has the following, RuntimeDirectory=foo/bar baz the service manager creates /run/foo (if it does not exist),