diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2011-09-20 12:28:22 +0200 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2011-09-20 13:13:17 +0200 |
commit | 418112a296e898cbd7fe8585995ae60936368327 (patch) | |
tree | 34fb1335bd7e03649d7942ef703d02322c4cbfc5 /man/systemd.unit.xml | |
parent | cbe8269481a0272a51d72dc35a54a1fe20c93dfc (diff) |
man: document which condition tests follow symlinks
ConditionPathExists and ConditionFileIsExecutable follow symlinks.
ConditionPathIsDirectory does not follow symlinks.
(XXX: is this actually the desired behavior?)
Diffstat (limited to 'man/systemd.unit.xml')
-rw-r--r-- | man/systemd.unit.xml | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml index b222f9f064..a94476acb8 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 @@ <varname>ConditionPathExists=</varname> is prefixed with an exclamation mark (!), the test is negated, and the unit - only started if the path does not - exist. <varname>ConditionPathExistsGlob=</varname> - 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. + <varname>ConditionPathExistsGlob=</varname> + works in a similar way, but checks for + the existence of at least one file or directory matching the specified - globbing - pattern. <varname>ConditionPathIsDirectory=</varname> - is similar to - <varname>ConditionPathExists=</varname> - but verifies whether a certain path - exists and is a - directory. <varname>ConditionFileIsExecutable=</varname> - is similar to - <varname>ConditionPathExists=</varname> - but verifies whether a certain path - exists, is a regular file and marked - executable. + globbing pattern. + <varname>ConditionPathIsDirectory=</varname> + is similar to <varname>ConditionPathExists=</varname> + but verifies whether a certain path exists and + is a directory. It does not follow symlinks. + <varname>ConditionFileIsExecutable=</varname> + is similar to <varname>ConditionPathExists=</varname> + but verifies whether a certain path exists, + is a regular file and marked executable. + It follows symlinks. <varname>ConditionDirectoryNotEmpty=</varname> is similar to <varname>ConditionPathExists=</varname> |