From 8092a428d40ac682df9e80c36988043854579679 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 7 Jul 2011 02:07:39 +0200 Subject: path,unit: support globbing in conditions and path units --- man/systemd.path.xml | 16 +++++++++++----- man/systemd.unit.xml | 20 +++++++++++++------- 2 files changed, 24 insertions(+), 12 deletions(-) (limited to 'man') diff --git a/man/systemd.path.xml b/man/systemd.path.xml index e816c3018c..f99931ab1e 100644 --- a/man/systemd.path.xml +++ b/man/systemd.path.xml @@ -111,6 +111,7 @@ PathExists= + PathExistsGlob= PathChanged= DirectoryNotEmpty= @@ -121,7 +122,11 @@ file or directory. If the file specified exists the configured unit is - activated. PathChanged= + activated. PathExistsGlob= + works similar, but checks for the + existance of at least one file + matching the globbing pattern + specified. PathChanged= may be used to watch a file or directory and activate the configured unit whenever it changes or is @@ -140,12 +145,13 @@ If a path is already existing (in case of - PathExists=) or a - directory already is not empty (in + PathExists= and + PathExistsGlob=) or + a directory already is not empty (in case of DirectoryNotEmpty=) - at the time the path unit is activated, - then the configured unit is + at the time the path unit is + activated, then the configured unit is immediately activated as well. Something similar does not apply to PathChanged=. diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml index dd32e5505c..0ca18bd317 100644 --- a/man/systemd.unit.xml +++ b/man/systemd.unit.xml @@ -607,6 +607,7 @@ ConditionPathExists= + ConditionPathExistsGlob= ConditionPathIsDirectory= ConditionDirectoryNotEmpty= ConditionKernelCommandLine= @@ -632,7 +633,12 @@ is prefixed with an exclamation mark (!), the test is negated, and the unit only started if the path does not - exist. ConditionPathIsDirectory= + exist. ConditionPathExistsGlob= + work in a similar way, but checks for + the existance of at least one file or + directory matching the specified + globbing + pattern. ConditionPathIsDirectory= is similar to ConditionPathExists= but verifies whether a certain path @@ -677,12 +683,12 @@ test may be negated by prepending an exclamation mark. ConditionSecurity= - may be used to check whether the given security - module is enabled on the system. - Currently the only recognized value is - selinux. - The test may be negated by prepending an - exclamation mark. Finally, + may be used to check whether the given + security module is enabled on the + system. Currently the only recognized + value is selinux. + The test may be negated by prepending + an exclamation mark. Finally, ConditionNull= may be used to add a constant condition check value to the unit. It takes a -- cgit v1.2.3-54-g00ecf