X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=man%2Fsystemd.unit.xml;h=960fb90dbd1d8080bbb97958327b0574b5270300;hb=02ea24ca2a0aac854c4e9e7d712f6464c8b29e4a;hp=157530be38a3deae624ccb6bb82660856167e935;hpb=b8bde11658366290521e3d03316378b482600323;p=elogind.git diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml index 157530be3..960fb90db 100644 --- a/man/systemd.unit.xml +++ b/man/systemd.unit.xml @@ -139,10 +139,12 @@ Unit files may contain additional options on top of those listed here. If systemd encounters an unknown option, it will write a warning log message but - continue loading the unit. If an option is prefixed - with , it is ignored completely by - systemd. Applications may use this to include - additional information in the unit files. + continue loading the unit. If an option or section name + is prefixed with , it is ignored + completely by systemd. Options within an ignored + section do not need the prefix. Applications may use + this to include additional information in the unit + files. Boolean arguments used in unit files can be written in various formats. For positive settings the @@ -898,6 +900,7 @@ ConditionSecurity= ConditionCapability= ConditionACPower= + ConditionNeedsUpdate= ConditionPathExists= ConditionPathExistsGlob= ConditionPathIsDirectory= @@ -1066,6 +1069,33 @@ all AC connectors are disconnected from a power source. + ConditionNeedsUpdate= + takes one of /var + or /etc as + argument, possibly prefixed with a + ! (for inverting + the condition). This condition may be + used to conditionalize units on + whether the specified directory + requires an update because + /usr's + modification time is newer than the + stamp file + .updated in the + specified directory. This is useful to + implement offline updates of the + vendor operating system resources in + /usr that require + updating of /etc + or /var on the + next following boot. Units making use + of this condition should order + themselves before + systemd-update-done.service8, + to make sure they run before the stamp + files's modification time gets reset + indicating a completed update. + With ConditionPathExists= a file existence condition is @@ -1179,7 +1209,7 @@ useful for implementation of generator tools that convert configuration from an external configuration file format - into native unit files. Thus + into native unit files. This functionality should not be used in normal units. @@ -1284,6 +1314,19 @@ of unit names may be given. + + + DefaultInstance= + + In template unit files, + this specifies for which instance the + unit shall be enabled if the template + is enabled without any explicitly set + instance. This option has no effect in + non-template unit files. The specified + string must be usable as instance + identifier. + The following specifiers are interpreted in the