From: Michal Schmidt Date: Tue, 20 Sep 2011 10:28:22 +0000 (+0200) Subject: man: document which condition tests follow symlinks X-Git-Tag: v36~49 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=418112a296e898cbd7fe8585995ae60936368327 man: document which condition tests follow symlinks ConditionPathExists and ConditionFileIsExecutable follow symlinks. ConditionPathIsDirectory does not follow symlinks. (XXX: is this actually the desired behavior?) --- diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml index b222f9f06..a94476acb 100644 --- a/man/systemd.unit.xml +++ b/man/systemd.unit.xml @@ -679,7 +679,7 @@ a file existence condition can be checked before a unit is started. If the specified absolute path name does - not exist startup of a unit will not + not exist, startup of a unit will not actually happen, however the unit is still useful for ordering purposes in this case. The condition is checked at @@ -689,23 +689,22 @@ ConditionPathExists= is prefixed with an exclamation mark (!), the test is negated, and the unit - only started if the path does not - exist. ConditionPathExistsGlob= - work in a similar way, but checks for - the existance of at least one file or + is only started if the path does not + exist. The test follows symlinks. + ConditionPathExistsGlob= + works in a similar way, but checks for + the existence of at least one file or directory matching the specified - globbing - pattern. ConditionPathIsDirectory= - is similar to - ConditionPathExists= - but verifies whether a certain path - exists and is a - directory. ConditionFileIsExecutable= - is similar to - ConditionPathExists= - but verifies whether a certain path - exists, is a regular file and marked - executable. + globbing pattern. + ConditionPathIsDirectory= + is similar to ConditionPathExists= + but verifies whether a certain path exists and + is a directory. It does not follow symlinks. + ConditionFileIsExecutable= + is similar to ConditionPathExists= + but verifies whether a certain path exists, + is a regular file and marked executable. + It follows symlinks. ConditionDirectoryNotEmpty= is similar to ConditionPathExists=