X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=man%2Fsystemd.unit.xml;h=1afa600a08fac4434a77a50cff86a582b821e7f1;hb=e7a2419a2ae2a8f56a3e2840f8d623d2a449277a;hp=803eff24aa691e918e0e74939ac758222d286ca3;hpb=f189ab18de69d3dee81117d7925fb370cd038f0f;p=elogind.git diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml index 803eff24a..1afa600a0 100644 --- a/man/systemd.unit.xml +++ b/man/systemd.unit.xml @@ -211,6 +211,10 @@ template .d/ subdirectory and reads its .conf files. + + Note that while systemd offers a flexible dependency system between units it is recommended to use this functionality only sparingly and instead rely @@ -950,7 +954,11 @@ ConditionDirectoryNotEmpty= ConditionFileNotEmpty= ConditionFileIsExecutable= - ConditionNull= + + Before starting a unit verify that the specified condition is @@ -1080,14 +1088,15 @@ ConditionSecurity= may be used to check whether the given security module is enabled on the - system. Currently the recognized values - values are selinux, + system. Currently the recognized + values values are + selinux, apparmor, - ima and - smack. - The test may be negated by prepending - an exclamation - mark. + ima, + smack and + audit. The test may + be negated by prepending an + exclamation mark. ConditionCapability= may be used to check whether the given @@ -1229,15 +1238,6 @@ exists, is a regular file and marked executable. - Finally, - ConditionNull= may - be used to add a constant condition - check value to the unit. It takes a - boolean argument. If set to - false, the condition - will always fail, otherwise - succeed. - If multiple conditions are specified, the unit will be executed if all of them apply (i.e. a logical AND @@ -1263,6 +1263,38 @@ have no effect. + + AssertArchitecture= + AssertVirtualization= + AssertHost= + AssertKernelCommandLine= + AssertSecurity= + AssertCapability= + AssertACPower= + AssertNeedsUpdate= + AssertFirstBoot= + AssertPathExists= + AssertPathExistsGlob= + AssertPathIsDirectory= + AssertPathIsSymbolicLink= + AssertPathIsMountPoint= + AssertPathIsReadWrite= + AssertDirectoryNotEmpty= + AssertFileNotEmpty= + AssertFileIsExecutable= + + Similar to the + ConditionArchitecture=, + ConditionVirtualization=, + ... condition settings described above + these settings add assertion checks to + the start-up of the unit. However, + unlike the conditions settings any + assertion setting that is not met + results in failure of the start + job it was triggered by. + + SourcePath= A path to a @@ -1524,6 +1556,16 @@ + + Please note that specifiers + %U, %h, + %s are mostly useless when systemd + is running in system mode. PID 1 cannot query the + user account database for information, so the + specifiers only work as shortcuts for things which are + already specified in a different way in the unit + file. They are fully functional when systemd is + running in mode.