X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=man%2Fsystemd.unit.xml;h=1afa600a08fac4434a77a50cff86a582b821e7f1;hb=2cf4172a71860c6e44edd27a3b68047ae062d7fc;hp=6d4c5c11eb6fab3bb4832a512e60063f4a2e5cb2;hpb=cfb1f5df7ce6868d3edb7333591b91c9809d64d3;p=elogind.git diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml index 6d4c5c11e..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 @@ -1230,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 @@ -1264,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 @@ -1525,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.