From 8d00da49fbb4f8b1ac2c7ccb0405e0011c2ce5c8 Mon Sep 17 00:00:00 2001 From: Bruno Vernay Date: Thu, 7 Jun 2018 17:38:10 +0200 Subject: [PATCH] Table is easier to grasp State goes in CONFIG for users 3rd review --- man/systemd.exec.xml | 49 ++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 42 insertions(+), 7 deletions(-) diff --git a/man/systemd.exec.xml b/man/systemd.exec.xml index a613c39..872d51d 100644 --- a/man/systemd.exec.xml +++ b/man/systemd.exec.xml @@ -805,13 +805,48 @@ CapabilityBoundingSet=~CAP_B CAP_C These options take a whitespace-separated list of directory names. The specified directory names must be relative, and may not include ... If set, one or more - directories by the specified names will be created (including their parents) below /run - (or $XDG_RUNTIME_DIR for user services), /var/lib (or - $XDG_CONFIG_HOME for user services), /var/cache (or - $XDG_CACHE_HOME for user services), /var/log (or - $XDG_CONFIG_HOME/log for user services), or /etc - (or $XDG_CONFIG_HOME for user services), respectively, when the unit is started. - + directories by the specified names will be created (including their parents) below the locations + defined in the following table, when the unit is started. + + Automatic directory creation + + + + Locations + for system + for users + + + + + RuntimeDirectory= + /run + $XDG_RUNTIME_DIR + + + StateDirectory= + /var/lib + $XDG_CONFIG_HOME + + + CacheDirectory= + /var/cache + $XDG_CACHE_HOME + + + LogsDirectory= + /var/log + $XDG_CONFIG_HOME/log + + + ConfigurationDirectory= + /etc + $XDG_CONFIG_HOME + + + +
+ In case of RuntimeDirectory= the lowest subdirectories are removed when the unit is stopped. It is possible to preserve the specified directories in this case if RuntimeDirectoryPreserve= is configured to or -- 2.7.4