.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "Config::Model::models::Systemd::Section::ServiceUnit 3pm" .TH Config::Model::models::Systemd::Section::ServiceUnit 3pm "2020-12-20" "perl v5.32.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Config::Model::models::Systemd::Section::ServiceUnit \- Configuration class Systemd::Section::ServiceUnit .SH "DESCRIPTION" .IX Header "DESCRIPTION" Configuration classes used by Config::Model .SH "Elements" .IX Header "Elements" .SS "Description" .IX Subsection "Description" A human readable name for the unit. This is used by systemd (and other UIs) as the label for the unit, so this string should identify the unit rather than describe it, despite the name. \f(CW\*(C`Apache2 Web Server\*(C'\fR is a good example. Bad examples are \f(CW\*(C`high\-performance light\-weight HTTP server\*(C'\fR (too generic) or \f(CW\*(C`Apache2\*(C'\fR (too specific and meaningless for people who do not know Apache). systemd will use this string as a noun in status messages (\f(CW\*(C`Starting description...\*(C'\fR, \f(CW\*(C`Started description.\*(C'\fR, \f(CW\*(C`Reached target description.\*(C'\fR, \f(CW\*(C`Failed to start description.\*(C'\fR), so it should be capitalized, and should not be a full sentence or a phrase with a continuous verb. Bad examples include \&\f(CW\*(C`exiting the container\*(C'\fR or \f(CW\*(C`updating the database once per day.\*(C'\fR. \fI Optional. Type uniline. \fR .SS "Documentation" .IX Subsection "Documentation" A space-separated list of URIs referencing documentation for this unit or its configuration. Accepted are only URIs of the types \f(CW\*(C`http://\*(C'\fR, \&\f(CW\*(C`https://\*(C'\fR, \f(CW\*(C`file:\*(C'\fR, \&\f(CW\*(C`info:\*(C'\fR, \f(CW\*(C`man:\*(C'\fR. For more information about the syntax of these URIs, see \fBuri\fR\|(7). The URIs should be listed in order of relevance, starting with the most relevant. It is a good idea to first reference documentation that explains what the unit's purpose is, followed by how it is configured, followed by any other related documentation. This option may be specified more than once, in which case the specified list of URIs is merged. If the empty string is assigned to this option, the list is reset and all prior assignments will have no effect. \fI Optional. Type list of uniline. \fR .SS "Wants" .IX Subsection "Wants" Configures requirement dependencies on other units. This option may be specified more than once or multiple space-separated units may be specified in one option in which case dependencies for all listed names will be created. Dependencies of this type may also be configured outside of the unit configuration file by adding a symlink to a \f(CW\*(C`.wants/\*(C'\fR directory accompanying the unit file. For details, see above. .PP Units listed in this option will be started if the configuring unit is. However, if the listed units fail to start or cannot be added to the transaction, this has no impact on the validity of the transaction as a whole, and this unit will still be started. This is the recommended way to hook the start-up of one unit to the start-up of another unit. .PP Note that requirement dependencies do not influence the order in which services are started or stopped. This has to be configured independently with the \f(CW\*(C`After\*(C'\fR or \&\f(CW\*(C`Before\*(C'\fR options. If unit \f(CW\*(C`foo.service\*(C'\fR pulls in unit \&\f(CW\*(C`bar.service\*(C'\fR as configured with \f(CW\*(C`Wants\*(C'\fR and no ordering is configured with \f(CW\*(C`After\*(C'\fR or \f(CW\*(C`Before\*(C'\fR, then both units will be started simultaneously and without any delay between them if \f(CW\*(C`foo.service\*(C'\fR is activated. \fI Optional. Type list of uniline. \fR .SS "Requires" .IX Subsection "Requires" Similar to \f(CW\*(C`Wants\*(C'\fR, but declares a stronger dependency. Dependencies of this type may also be configured by adding a symlink to a \&\f(CW\*(C`.requires/\*(C'\fR directory accompanying the unit file. .PP If this unit gets activated, the units listed will be activated as well. If one of the other units fails to activate, and an ordering dependency \f(CW\*(C`After\*(C'\fR on the failing unit is set, this unit will not be started. Besides, with or without specifying \&\f(CW\*(C`After\*(C'\fR, this unit will be stopped if one of the other units is explicitly stopped. .PP Often, it is a better choice to use \f(CW\*(C`Wants\*(C'\fR instead of \&\f(CW\*(C`Requires\*(C'\fR in order to achieve a system that is more robust when dealing with failing services. .PP Note that this dependency type does not imply that the other unit always has to be in active state when this unit is running. Specifically: failing condition checks (such as \f(CW\*(C`ConditionPathExists\*(C'\fR, \&\f(CW\*(C`ConditionPathIsSymbolicLink\*(C'\fR, X X see below) do not cause the start job of a unit with a \&\f(CW\*(C`Requires\*(C'\fR dependency on it to fail. Also, some unit types may deactivate on their own (for example, a service process may decide to exit cleanly, or a device may be unplugged by the user), which is not propagated to units having a \f(CW\*(C`Requires\*(C'\fR dependency. Use the \f(CW\*(C`BindsTo\*(C'\fR dependency type together with \f(CW\*(C`After\*(C'\fR to ensure that a unit may never be in active state without a specific other unit also in active state (see below). \fI Optional. Type list of uniline. \fR .SS "Requisite" .IX Subsection "Requisite" Similar to \f(CW\*(C`Requires\*(C'\fR. However, if the units listed here are not started already, they will not be started and the starting of this unit will fail immediately. \f(CW\*(C`Requisite\*(C'\fR does not imply an ordering dependency, even if both units are started in the same transaction. Hence this setting should usually be combined with \f(CW\*(C`After\*(C'\fR, to ensure this unit is not started before the other unit. .PP When \f(CW\*(C`Requisite=b.service\*(C'\fR is used on \&\f(CW\*(C`a.service\*(C'\fR, this dependency will show as \&\f(CW\*(C`RequisiteOf=a.service\*(C'\fR in property listing of \&\f(CW\*(C`b.service\*(C'\fR. \f(CW\*(C`RequisiteOf\*(C'\fR dependency cannot be specified directly. \fI Optional. Type list of uniline. \fR .SS "BindsTo" .IX Subsection "BindsTo" Configures requirement dependencies, very similar in style to \&\f(CW\*(C`Requires\*(C'\fR. However, this dependency type is stronger: in addition to the effect of \&\f(CW\*(C`Requires\*(C'\fR it declares that if the unit bound to is stopped, this unit will be stopped too. This means a unit bound to another unit that suddenly enters inactive state will be stopped too. Units can suddenly, unexpectedly enter inactive state for different reasons: the main process of a service unit might terminate on its own choice, the backing device of a device unit might be unplugged or the mount point of a mount unit might be unmounted without involvement of the system and service manager. .PP When used in conjunction with \f(CW\*(C`After\*(C'\fR on the same unit the behaviour of \&\f(CW\*(C`BindsTo\*(C'\fR is even stronger. In this case, the unit bound to strictly has to be in active state for this unit to also be in active state. This not only means a unit bound to another unit that suddenly enters inactive state, but also one that is bound to another unit that gets skipped due to a failed condition check (such as \f(CW\*(C`ConditionPathExists\*(C'\fR, \f(CW\*(C`ConditionPathIsSymbolicLink\*(C'\fR, X X see below) will be stopped, should it be running. Hence, in many cases it is best to combine \&\f(CW\*(C`BindsTo\*(C'\fR with \f(CW\*(C`After\*(C'\fR. .PP When \f(CW\*(C`BindsTo=b.service\*(C'\fR is used on \&\f(CW\*(C`a.service\*(C'\fR, this dependency will show as \&\f(CW\*(C`BoundBy=a.service\*(C'\fR in property listing of \&\f(CW\*(C`b.service\*(C'\fR. \f(CW\*(C`BoundBy\*(C'\fR dependency cannot be specified directly. \fI Optional. Type list of uniline. \fR .SS "PartOf" .IX Subsection "PartOf" Configures dependencies similar to \&\f(CW\*(C`Requires\*(C'\fR, but limited to stopping and restarting of units. When systemd stops or restarts the units listed here, the action is propagated to this unit. Note that this is a one-way dependency\ X changes to this unit do not affect the listed units. .PP When \f(CW\*(C`PartOf=b.service\*(C'\fR is used on \&\f(CW\*(C`a.service\*(C'\fR, this dependency will show as \&\f(CW\*(C`ConsistsOf=a.service\*(C'\fR in property listing of \&\f(CW\*(C`b.service\*(C'\fR. \f(CW\*(C`ConsistsOf\*(C'\fR dependency cannot be specified directly. \fI Optional. Type list of uniline. \fR .SS "Conflicts" .IX Subsection "Conflicts" A space-separated list of unit names. Configures negative requirement dependencies. If a unit has a \f(CW\*(C`Conflicts\*(C'\fR setting on another unit, starting the former will stop the latter and vice versa. .PP Note that this setting does not imply an ordering dependency, similarly to the \&\f(CW\*(C`Wants\*(C'\fR and \f(CW\*(C`Requires\*(C'\fR dependencies described above. This means that to ensure that the conflicting unit is stopped before the other unit is started, an \&\f(CW\*(C`After\*(C'\fR or \f(CW\*(C`Before\*(C'\fR dependency must be declared. It doesn't matter which of the two ordering dependencies is used, because stop jobs are always ordered before start jobs, see the discussion in \f(CW\*(C`Before\*(C'\fR/\f(CW\*(C`After\*(C'\fR below. .PP If unit A that conflicts with unit B is scheduled to be started at the same time as B, the transaction will either fail (in case both are required parts of the transaction) or be modified to be fixed (in case one or both jobs are not a required part of the transaction). In the latter case, the job that is not required will be removed, or in case both are not required, the unit that conflicts will be started and the unit that is conflicted is stopped. \fI Optional. Type list of uniline. \fR .SS "Before" .IX Subsection "Before" These two settings expect a space-separated list of unit names. They may be specified more than once, in which case dependencies for all listed names are created. .PP Those two settings configure ordering dependencies between units. If unit \&\f(CW\*(C`foo.service\*(C'\fR contains the setting \f(CW\*(C`Before=bar.service\*(C'\fR and both units are being started, \f(CW\*(C`bar.service\*(C'\fR's start-up is delayed until \&\f(CW\*(C`foo.service\*(C'\fR has finished starting up. \f(CW\*(C`After\*(C'\fR is the inverse of \f(CW\*(C`Before\*(C'\fR, i.e. while \f(CW\*(C`Before\*(C'\fR ensures that the configured unit is started before the listed unit begins starting up, \f(CW\*(C`After\*(C'\fR ensures the opposite, that the listed unit is fully started up before the configured unit is started. .PP When two units with an ordering dependency between them are shut down, the inverse of the start-up order is applied. I.e. if a unit is configured with \f(CW\*(C`After\*(C'\fR on another unit, the former is stopped before the latter if both are shut down. Given two units with any ordering dependency between them, if one unit is shut down and the other is started up, the shutdown is ordered before the start-up. It doesn't matter if the ordering dependency is \&\f(CW\*(C`After\*(C'\fR or \f(CW\*(C`Before\*(C'\fR, in this case. It also doesn't matter which of the two is shut down, as long as one is shut down and the other is started up; the shutdown is ordered before the start-up in all cases. If two units have no ordering dependencies between them, they are shut down or started up simultaneously, and no ordering takes place. It depends on the unit type when precisely a unit has finished starting up. Most importantly, for service units start-up is considered completed for the purpose of \f(CW\*(C`Before\*(C'\fR/\f(CW\*(C`After\*(C'\fR when all its configured start-up commands have been invoked and they either failed or reported start-up success. Note that this does includes \f(CW\*(C`ExecStartPost\*(C'\fR (or \&\f(CW\*(C`ExecStopPost\*(C'\fR for the shutdown case). .PP Note that those settings are independent of and orthogonal to the requirement dependencies as configured by \f(CW\*(C`Requires\*(C'\fR, \f(CW\*(C`Wants\*(C'\fR, \f(CW\*(C`Requisite\*(C'\fR, or \f(CW\*(C`BindsTo\*(C'\fR. It is a common pattern to include a unit name in both the \&\f(CW\*(C`After\*(C'\fR and \f(CW\*(C`Wants\*(C'\fR options, in which case the unit listed will be started before the unit that is configured with these options. .PP Note that \f(CW\*(C`Before\*(C'\fR dependencies on device units have no effect and are not supported. Devices generally become available as a result of an external hotplug event, and systemd creates the corresponding device unit without delay. \fI Optional. Type list of uniline. \fR .SS "After" .IX Subsection "After" These two settings expect a space-separated list of unit names. They may be specified more than once, in which case dependencies for all listed names are created. .PP Those two settings configure ordering dependencies between units. If unit \&\f(CW\*(C`foo.service\*(C'\fR contains the setting \f(CW\*(C`Before=bar.service\*(C'\fR and both units are being started, \f(CW\*(C`bar.service\*(C'\fR's start-up is delayed until \&\f(CW\*(C`foo.service\*(C'\fR has finished starting up. \f(CW\*(C`After\*(C'\fR is the inverse of \f(CW\*(C`Before\*(C'\fR, i.e. while \f(CW\*(C`Before\*(C'\fR ensures that the configured unit is started before the listed unit begins starting up, \f(CW\*(C`After\*(C'\fR ensures the opposite, that the listed unit is fully started up before the configured unit is started. .PP When two units with an ordering dependency between them are shut down, the inverse of the start-up order is applied. I.e. if a unit is configured with \f(CW\*(C`After\*(C'\fR on another unit, the former is stopped before the latter if both are shut down. Given two units with any ordering dependency between them, if one unit is shut down and the other is started up, the shutdown is ordered before the start-up. It doesn't matter if the ordering dependency is \&\f(CW\*(C`After\*(C'\fR or \f(CW\*(C`Before\*(C'\fR, in this case. It also doesn't matter which of the two is shut down, as long as one is shut down and the other is started up; the shutdown is ordered before the start-up in all cases. If two units have no ordering dependencies between them, they are shut down or started up simultaneously, and no ordering takes place. It depends on the unit type when precisely a unit has finished starting up. Most importantly, for service units start-up is considered completed for the purpose of \f(CW\*(C`Before\*(C'\fR/\f(CW\*(C`After\*(C'\fR when all its configured start-up commands have been invoked and they either failed or reported start-up success. Note that this does includes \f(CW\*(C`ExecStartPost\*(C'\fR (or \&\f(CW\*(C`ExecStopPost\*(C'\fR for the shutdown case). .PP Note that those settings are independent of and orthogonal to the requirement dependencies as configured by \f(CW\*(C`Requires\*(C'\fR, \f(CW\*(C`Wants\*(C'\fR, \f(CW\*(C`Requisite\*(C'\fR, or \f(CW\*(C`BindsTo\*(C'\fR. It is a common pattern to include a unit name in both the \&\f(CW\*(C`After\*(C'\fR and \f(CW\*(C`Wants\*(C'\fR options, in which case the unit listed will be started before the unit that is configured with these options. .PP Note that \f(CW\*(C`Before\*(C'\fR dependencies on device units have no effect and are not supported. Devices generally become available as a result of an external hotplug event, and systemd creates the corresponding device unit without delay. \fI Optional. Type list of uniline. \fR .SS "OnFailure" .IX Subsection "OnFailure" A space-separated list of one or more units that are activated when this unit enters the \&\f(CW\*(C`failed\*(C'\fR state. A service unit using \&\f(CW\*(C`Restart\*(C'\fR enters the failed state only after the start limits are reached. \fI Optional. Type uniline. \fR .SS "PropagatesReloadTo" .IX Subsection "PropagatesReloadTo" A space-separated list of one or more units where reload requests on this unit will be propagated to, or reload requests on the other unit will be propagated to this unit, respectively. Issuing a reload request on a unit will automatically also enqueue a reload request on all units that the reload request shall be propagated to via these two settings. \fI Optional. Type uniline. \fR .SS "ReloadPropagatedFrom" .IX Subsection "ReloadPropagatedFrom" A space-separated list of one or more units where reload requests on this unit will be propagated to, or reload requests on the other unit will be propagated to this unit, respectively. Issuing a reload request on a unit will automatically also enqueue a reload request on all units that the reload request shall be propagated to via these two settings. \fI Optional. Type uniline. \fR .SS "JoinsNamespaceOf" .IX Subsection "JoinsNamespaceOf" For units that start processes (such as service units), lists one or more other units whose network and/or temporary file namespace to join. This only applies to unit types which support the \f(CW\*(C`PrivateNetwork\*(C'\fR, \f(CW\*(C`NetworkNamespacePath\*(C'\fR and \&\f(CW\*(C`PrivateTmp\*(C'\fR directives (see \&\fBsystemd.exec\fR\|(5) for details). If a unit that has this setting set is started, its processes will see the same \&\f(CW\*(C`/tmp/\*(C'\fR, \f(CW\*(C`/var/tmp/\*(C'\fR and network namespace as one listed unit that is started. If multiple listed units are already started, it is not defined which namespace is joined. Note that this setting only has an effect if \&\f(CW\*(C`PrivateNetwork\*(C'\fR/\f(CW\*(C`NetworkNamespacePath\*(C'\fR and/or \&\f(CW\*(C`PrivateTmp\*(C'\fR is enabled for both the unit that joins the namespace and the unit whose namespace is joined. \fI Optional. Type uniline. \fR .SS "RequiresMountsFor" .IX Subsection "RequiresMountsFor" Takes a space-separated list of absolute paths. Automatically adds dependencies of type \&\f(CW\*(C`Requires\*(C'\fR and \f(CW\*(C`After\*(C'\fR for all mount units required to access the specified path. .PP Mount points marked with \f(CW\*(C`noauto\*(C'\fR are not mounted automatically through \f(CW\*(C`local\-fs.target\*(C'\fR, but are still honored for the purposes of this option, i.e. they will be pulled in by this unit. \fI Optional. Type uniline. \fR .SS "OnFailureJobMode" .IX Subsection "OnFailureJobMode" Takes a value of \&\f(CW\*(C`fail\*(C'\fR, \&\f(CW\*(C`replace\*(C'\fR, \&\f(CW\*(C`replace\-irreversibly\*(C'\fR, \&\f(CW\*(C`isolate\*(C'\fR, \&\f(CW\*(C`flush\*(C'\fR, \&\f(CW\*(C`ignore\-dependencies\*(C'\fR or \&\f(CW\*(C`ignore\-requirements\*(C'\fR. Defaults to \&\f(CW\*(C`replace\*(C'\fR. Specifies how the units listed in \&\f(CW\*(C`OnFailure\*(C'\fR will be enqueued. See \&\fBsystemctl\fR\|(1)'s \&\f(CW\*(C`\-\-job\-mode=\*(C'\fR option for details on the possible values. If this is set to \f(CW\*(C`isolate\*(C'\fR, only a single unit may be listed in \&\f(CW\*(C`OnFailure\*(C'\fR. \fI Optional. Type uniline. \fR .PP Note: OnFailureJobMode is migrated with '\f(CW$unit\fR' and with: .IP "\(bu" 4 \&\f(CW$unit\fR => \f(CW\*(C`\- OnFailureIsolate\*(C'\fR .SS "IgnoreOnIsolate" .IX Subsection "IgnoreOnIsolate" Takes a boolean argument. If \f(CW\*(C`true\*(C'\fR, this unit will not be stopped when isolating another unit. Defaults to \f(CW\*(C`false\*(C'\fR for service, target, socket, timer, and path units, and \f(CW\*(C`true\*(C'\fR for slice, scope, device, swap, mount, and automount units. \fI Optional. Type boolean. \fR .SS "StopWhenUnneeded" .IX Subsection "StopWhenUnneeded" Takes a boolean argument. If \&\f(CW\*(C`true\*(C'\fR, this unit will be stopped when it is no longer used. Note that, in order to minimize the work to be executed, systemd will not stop units by default unless they are conflicting with other units, or the user explicitly requested their shut down. If this option is set, a unit will be automatically cleaned up if no other active unit requires it. Defaults to \f(CW\*(C`false\*(C'\fR. \fI Optional. Type boolean. \fR .SS "RefuseManualStart" .IX Subsection "RefuseManualStart" Takes a boolean argument. If \&\f(CW\*(C`true\*(C'\fR, this unit can only be activated or deactivated indirectly. In this case, explicit start-up or termination requested by the user is denied, however if it is started or stopped as a dependency of another unit, start-up or termination will succeed. This is mostly a safety feature to ensure that the user does not accidentally activate units that are not intended to be activated explicitly, and not accidentally deactivate units that are not intended to be deactivated. These options default to \&\f(CW\*(C`false\*(C'\fR. \fI Optional. Type boolean. \fR .SS "RefuseManualStop" .IX Subsection "RefuseManualStop" Takes a boolean argument. If \&\f(CW\*(C`true\*(C'\fR, this unit can only be activated or deactivated indirectly. In this case, explicit start-up or termination requested by the user is denied, however if it is started or stopped as a dependency of another unit, start-up or termination will succeed. This is mostly a safety feature to ensure that the user does not accidentally activate units that are not intended to be activated explicitly, and not accidentally deactivate units that are not intended to be deactivated. These options default to \&\f(CW\*(C`false\*(C'\fR. \fI Optional. Type boolean. \fR .SS "AllowIsolate" .IX Subsection "AllowIsolate" Takes a boolean argument. If \&\f(CW\*(C`true\*(C'\fR, this unit may be used with the systemctl isolate command. Otherwise, this will be refused. It probably is a good idea to leave this disabled except for target units that shall be used similar to runlevels in SysV init systems, just as a precaution to avoid unusable system states. This option defaults to \&\f(CW\*(C`false\*(C'\fR. \fI Optional. Type boolean. \fR .SS "DefaultDependencies" .IX Subsection "DefaultDependencies" Takes a boolean argument. If \&\f(CW\*(C`yes\*(C'\fR, (the default), a few default dependencies will implicitly be created for the unit. The actual dependencies created depend on the unit type. For example, for service units, these dependencies ensure that the service is started only after basic system initialization is completed and is properly terminated on system shutdown. See the respective man pages for details. Generally, only services involved with early boot or late shutdown should set this option to \f(CW\*(C`no\*(C'\fR. It is highly recommended to leave this option enabled for the majority of common units. If set to \f(CW\*(C`no\*(C'\fR, this option does not disable all implicit dependencies, just non-essential ones. \fI Optional. Type boolean. \fR .SS "CollectMode" .IX Subsection "CollectMode" Tweaks the \*(L"garbage collection\*(R" algorithm for this unit. Takes one of \f(CW\*(C`inactive\*(C'\fR or \f(CW\*(C`inactive\-or\-failed\*(C'\fR. If set to \f(CW\*(C`inactive\*(C'\fR the unit will be unloaded if it is in the \f(CW\*(C`inactive\*(C'\fR state and is not referenced by clients, jobs or other units X however it is not unloaded if it is in the \f(CW\*(C`failed\*(C'\fR state. In \f(CW\*(C`failed\*(C'\fR mode, failed units are not unloaded until the user invoked systemctl reset-failed on them to reset the \&\f(CW\*(C`failed\*(C'\fR state, or an equivalent command. This behaviour is altered if this option is set to \&\f(CW\*(C`inactive\-or\-failed\*(C'\fR: in this case the unit is unloaded even if the unit is in a \&\f(CW\*(C`failed\*(C'\fR state, and thus an explicitly resetting of the \f(CW\*(C`failed\*(C'\fR state is not necessary. Note that if this mode is used unit results (such as exit codes, exit signals, consumed resources, X) are flushed out immediately after the unit completed, except for what is stored in the logging subsystem. Defaults to \f(CW\*(C`inactive\*(C'\fR. \fI Optional. Type enum. choice: 'inactive', 'inactive\-or\-failed'. \fR .SS "FailureActionExitStatus" .IX Subsection "FailureActionExitStatus" Controls the exit status to propagate back to an invoking container manager (in case of a system service) or service manager (in case of a user manager) when the \&\f(CW\*(C`FailureAction\*(C'\fR/\f(CW\*(C`SuccessAction\*(C'\fR are set to \f(CW\*(C`exit\*(C'\fR or \&\f(CW\*(C`exit\-force\*(C'\fR and the action is triggered. By default the exit status of the main process of the triggering unit (if this applies) is propagated. Takes a value in the range 0X255 or the empty string to request default behaviour. \fI Optional. Type uniline. \fR .SS "SuccessActionExitStatus" .IX Subsection "SuccessActionExitStatus" Controls the exit status to propagate back to an invoking container manager (in case of a system service) or service manager (in case of a user manager) when the \&\f(CW\*(C`FailureAction\*(C'\fR/\f(CW\*(C`SuccessAction\*(C'\fR are set to \f(CW\*(C`exit\*(C'\fR or \&\f(CW\*(C`exit\-force\*(C'\fR and the action is triggered. By default the exit status of the main process of the triggering unit (if this applies) is propagated. Takes a value in the range 0X255 or the empty string to request default behaviour. \fI Optional. Type uniline. \fR .SS "JobTimeoutSec" .IX Subsection "JobTimeoutSec" When a job for this unit is queued, a timeout \f(CW\*(C`JobTimeoutSec\*(C'\fR may be configured. Similarly, \f(CW\*(C`JobRunningTimeoutSec\*(C'\fR starts counting when the queued job is actually started. If either time limit is reached, the job will be cancelled, the unit however will not change state or even enter the \f(CW\*(C`failed\*(C'\fR mode. This value defaults to \f(CW\*(C`infinity\*(C'\fR (job timeouts disabled), except for device units (\f(CW\*(C`JobRunningTimeoutSec\*(C'\fR defaults to \&\f(CW\*(C`DefaultTimeoutStartSec\*(C'\fR). \s-1NB:\s0 this timeout is independent from any unit-specific timeout (for example, the timeout set with \f(CW\*(C`TimeoutStartSec\*(C'\fR in service units) as the job timeout has no effect on the unit itself, only on the job that might be pending for it. Or in other words: unit-specific timeouts are useful to abort unit state changes, and revert them. The job timeout set with this option however is useful to abort only the job waiting for the unit state to change. \fI Optional. Type uniline. \fR .SS "JobRunningTimeoutSec" .IX Subsection "JobRunningTimeoutSec" When a job for this unit is queued, a timeout \f(CW\*(C`JobTimeoutSec\*(C'\fR may be configured. Similarly, \f(CW\*(C`JobRunningTimeoutSec\*(C'\fR starts counting when the queued job is actually started. If either time limit is reached, the job will be cancelled, the unit however will not change state or even enter the \f(CW\*(C`failed\*(C'\fR mode. This value defaults to \f(CW\*(C`infinity\*(C'\fR (job timeouts disabled), except for device units (\f(CW\*(C`JobRunningTimeoutSec\*(C'\fR defaults to \&\f(CW\*(C`DefaultTimeoutStartSec\*(C'\fR). \s-1NB:\s0 this timeout is independent from any unit-specific timeout (for example, the timeout set with \f(CW\*(C`TimeoutStartSec\*(C'\fR in service units) as the job timeout has no effect on the unit itself, only on the job that might be pending for it. Or in other words: unit-specific timeouts are useful to abort unit state changes, and revert them. The job timeout set with this option however is useful to abort only the job waiting for the unit state to change. \fI Optional. Type uniline. \fR .SS "JobTimeoutAction" .IX Subsection "JobTimeoutAction" \&\f(CW\*(C`JobTimeoutAction\*(C'\fR optionally configures an additional action to take when the timeout is hit, see description of \f(CW\*(C`JobTimeoutSec\*(C'\fR and \&\f(CW\*(C`JobRunningTimeoutSec\*(C'\fR above. It takes the same values as \&\f(CW\*(C`StartLimitAction\*(C'\fR. Defaults to \f(CW\*(C`none\*(C'\fR. \&\f(CW\*(C`JobTimeoutRebootArgument\*(C'\fR configures an optional reboot string to pass to the \&\fBreboot\fR\|(2) system call. \&\fI Optional. Type uniline. \fR .SS "JobTimeoutRebootArgument" .IX Subsection "JobTimeoutRebootArgument" \&\f(CW\*(C`JobTimeoutAction\*(C'\fR optionally configures an additional action to take when the timeout is hit, see description of \f(CW\*(C`JobTimeoutSec\*(C'\fR and \&\f(CW\*(C`JobRunningTimeoutSec\*(C'\fR above. It takes the same values as \&\f(CW\*(C`StartLimitAction\*(C'\fR. Defaults to \f(CW\*(C`none\*(C'\fR. \&\f(CW\*(C`JobTimeoutRebootArgument\*(C'\fR configures an optional reboot string to pass to the \&\fBreboot\fR\|(2) system call. \&\fI Optional. Type uniline. \fR .SS "StartLimitAction" .IX Subsection "StartLimitAction" Configure an additional action to take if the rate limit configured with \&\f(CW\*(C`StartLimitIntervalSec\*(C'\fR and \f(CW\*(C`StartLimitBurst\*(C'\fR is hit. Takes the same values as the \f(CW\*(C`FailureAction\*(C'\fR/\f(CW\*(C`SuccessAction\*(C'\fR settings. If \&\f(CW\*(C`none\*(C'\fR is set, hitting the rate limit will trigger no action except that the start will not be permitted. Defaults to \f(CW\*(C`none\*(C'\fR. \fI Optional. Type enum. choice: 'none', 'reboot', 'reboot\-force', 'reboot\-immediate', 'poweroff', 'poweroff\-force', 'poweroff\-immediate', 'exit', 'exit\-force'. \fR .SS "SourcePath" .IX Subsection "SourcePath" A path to a configuration file this unit has been generated from. This is primarily useful for implementation of generator tools that convert configuration from an external configuration file format into native unit files. This functionality should not be used in normal units. \fI Optional. Type uniline. \fR .SS "ConditionArchitecture" .IX Subsection "ConditionArchitecture" Check whether the system is running on a specific architecture. Takes one of \&\f(CW\*(C`x86\*(C'\fR, \&\f(CW\*(C`x86\-64\*(C'\fR, \&\f(CW\*(C`ppc\*(C'\fR, \&\f(CW\*(C`ppc\-le\*(C'\fR, \&\f(CW\*(C`ppc64\*(C'\fR, \&\f(CW\*(C`ppc64\-le\*(C'\fR, \&\f(CW\*(C`ia64\*(C'\fR, \&\f(CW\*(C`parisc\*(C'\fR, \&\f(CW\*(C`parisc64\*(C'\fR, \&\f(CW\*(C`s390\*(C'\fR, \&\f(CW\*(C`s390x\*(C'\fR, \&\f(CW\*(C`sparc\*(C'\fR, \&\f(CW\*(C`sparc64\*(C'\fR, \&\f(CW\*(C`mips\*(C'\fR, \&\f(CW\*(C`mips\-le\*(C'\fR, \&\f(CW\*(C`mips64\*(C'\fR, \&\f(CW\*(C`mips64\-le\*(C'\fR, \&\f(CW\*(C`alpha\*(C'\fR, \&\f(CW\*(C`arm\*(C'\fR, \&\f(CW\*(C`arm\-be\*(C'\fR, \&\f(CW\*(C`arm64\*(C'\fR, \&\f(CW\*(C`arm64\-be\*(C'\fR, \&\f(CW\*(C`sh\*(C'\fR, \&\f(CW\*(C`sh64\*(C'\fR, \&\f(CW\*(C`m68k\*(C'\fR, \&\f(CW\*(C`tilegx\*(C'\fR, \&\f(CW\*(C`cris\*(C'\fR, \&\f(CW\*(C`arc\*(C'\fR, \&\f(CW\*(C`arc\-be\*(C'\fR, or \&\f(CW\*(C`native\*(C'\fR. .PP The architecture is determined from the information returned by \&\fBuname\fR\|(2) and is thus subject to \&\fBpersonality\fR\|(2). Note that a \f(CW\*(C`Personality\*(C'\fR setting in the same unit file has no effect on this condition. A special architecture name \f(CW\*(C`native\*(C'\fR is mapped to the architecture the system manager itself is compiled for. The test may be negated by prepending an exclamation mark. \fI Optional. Type list of enum. \fR .SS "ConditionVirtualization" .IX Subsection "ConditionVirtualization" Check whether the system is executed in a virtualized environment and optionally test whether it is a specific implementation. Takes either boolean value to check if being executed in any virtualized environment, or one of \&\f(CW\*(C`vm\*(C'\fR and \&\f(CW\*(C`container\*(C'\fR to test against a generic type of virtualization solution, or one of \&\f(CW\*(C`qemu\*(C'\fR, \&\f(CW\*(C`kvm\*(C'\fR, \&\f(CW\*(C`zvm\*(C'\fR, \&\f(CW\*(C`vmware\*(C'\fR, \&\f(CW\*(C`microsoft\*(C'\fR, \&\f(CW\*(C`oracle\*(C'\fR, \&\f(CW\*(C`powervm\*(C'\fR, \&\f(CW\*(C`xen\*(C'\fR, \&\f(CW\*(C`bochs\*(C'\fR, \&\f(CW\*(C`uml\*(C'\fR, \&\f(CW\*(C`bhyve\*(C'\fR, \&\f(CW\*(C`qnx\*(C'\fR, \&\f(CW\*(C`openvz\*(C'\fR, \&\f(CW\*(C`lxc\*(C'\fR, \&\f(CW\*(C`lxc\-libvirt\*(C'\fR, \&\f(CW\*(C`systemd\-nspawn\*(C'\fR, \&\f(CW\*(C`docker\*(C'\fR, \&\f(CW\*(C`podman\*(C'\fR, \&\f(CW\*(C`rkt\*(C'\fR, \&\f(CW\*(C`wsl\*(C'\fR, \&\f(CW\*(C`proot\*(C'\fR, \&\f(CW\*(C`pouch\*(C'\fR, \&\f(CW\*(C`acrn\*(C'\fR to test against a specific implementation, or \&\f(CW\*(C`private\-users\*(C'\fR to check whether we are running in a user namespace. See \&\fBsystemd\-detect\-virt\fR\|(1) for a full list of known virtualization technologies and their identifiers. If multiple virtualization technologies are nested, only the innermost is considered. The test may be negated by prepending an exclamation mark. \fI Optional. Type list of uniline. \fR .SS "ConditionHost" .IX Subsection "ConditionHost" \&\f(CW\*(C`ConditionHost\*(C'\fR may be used to match against the hostname or machine \s-1ID\s0 of the host. This either takes a hostname string (optionally with shell style globs) which is tested against the locally set hostname as returned by \&\fBgethostname\fR\|(2), or a machine \s-1ID\s0 formatted as string (see \&\fBmachine\-id\fR\|(5)). The test may be negated by prepending an exclamation mark. \fI Optional. Type list of uniline. \fR .SS "ConditionKernelCommandLine" .IX Subsection "ConditionKernelCommandLine" \&\f(CW\*(C`ConditionKernelCommandLine\*(C'\fR may be used to check whether a specific kernel command line option is set (or if prefixed with the exclamation mark X unset). The argument must either be a single word, or an assignment (i.e. two words, separated by \&\f(CW\*(C`=\*(C'\fR). In the former case the kernel command line is searched for the word appearing as is, or as left hand side of an assignment. In the latter case, the exact assignment is looked for with right and left hand side matching. This operates on the kernel command line communicated to userspace via \f(CW\*(C`/proc/cmdline\*(C'\fR, except when the service manager is invoked as payload of a container manager, in which case the command line of \f(CW\*(C`PID 1\*(C'\fR is used instead (i.e. \f(CW\*(C`/proc/1/cmdline\*(C'\fR). \fI Optional. Type list of uniline. \fR .SS "ConditionKernelVersion" .IX Subsection "ConditionKernelVersion" \&\f(CW\*(C`ConditionKernelVersion\*(C'\fR may be used to check whether the kernel version (as reported by uname \-r) matches a certain expression (or if prefixed with the exclamation mark does not match it). The argument must be a list of (potentially quoted) expressions. For each of the expressions, if it starts with one of \f(CW\*(C`<\*(C'\fR, \&\f(CW\*(C`<=\*(C'\fR, \f(CW\*(C`=\*(C'\fR, \f(CW\*(C`!=\*(C'\fR, \f(CW\*(C`\*(C'\fR=>, \&\f(CW\*(C`\*(C'\fR> a relative version comparison is done, otherwise the specified string is matched with shell-style globs. .PP Note that using the kernel version string is an unreliable way to determine which features are supported by a kernel, because of the widespread practice of backporting drivers, features, and fixes from newer upstream kernels into older versions provided by distributions. Hence, this check is inherently unportable and should not be used for units which may be used on different distributions. \fI Optional. Type list of uniline. \fR .SS "ConditionEnvironment" .IX Subsection "ConditionEnvironment" \&\f(CW\*(C`ConditionEnvironment\*(C'\fR may be used to check whether a specific environment variable is set (or if prefixed with the exclamation mark X unset) in the service manager's environment block. The argument may be a single word, to check if the variable with this name is defined in the environment block, or an assignment (\f(CW\*(C`name=value\*(C'\fR), to check if the variable with this exact value is defined. Note that the environment block of the service manager itself is checked, i.e. not any variables defined with \f(CW\*(C`Environment\*(C'\fR or \&\f(CW\*(C`EnvironmentFile\*(C'\fR, as described above. This is particularly useful when the service manager runs inside a containerized environment or as per-user service manager, in order to check for variables passed in by the enclosing container manager or \s-1PAM.\s0 \fI Optional. Type list of uniline. \fR .SS "ConditionSecurity" .IX Subsection "ConditionSecurity" \&\f(CW\*(C`ConditionSecurity\*(C'\fR may be used to check whether the given security technology is enabled on the system. Currently, the recognized values are \&\f(CW\*(C`selinux\*(C'\fR, \f(CW\*(C`apparmor\*(C'\fR, \f(CW\*(C`tomoyo\*(C'\fR, \&\f(CW\*(C`ima\*(C'\fR, \f(CW\*(C`smack\*(C'\fR, \f(CW\*(C`audit\*(C'\fR and \&\f(CW\*(C`uefi\-secureboot\*(C'\fR. The test may be negated by prepending an exclamation mark. \fI Optional. Type list of uniline. \fR .SS "ConditionCapability" .IX Subsection "ConditionCapability" Check whether the given capability exists in the capability bounding set of the service manager (i.e. this does not check whether capability is actually available in the permitted or effective sets, see \&\fBcapabilities\fR\|(7) for details). Pass a capability name such as \f(CW\*(C`CAP_MKNOD\*(C'\fR, possibly prefixed with an exclamation mark to negate the check. \fI Optional. Type list of uniline. \fR .SS "ConditionACPower" .IX Subsection "ConditionACPower" Check whether the system has \s-1AC\s0 power, or is exclusively battery powered at the time of activation of the unit. This takes a boolean argument. If set to \f(CW\*(C`true\*(C'\fR, the condition will hold only if at least one \s-1AC\s0 connector of the system is connected to a power source, or if no \s-1AC\s0 connectors are known. Conversely, if set to \f(CW\*(C`false\*(C'\fR, the condition will hold only if there is at least one \s-1AC\s0 connector known and all \s-1AC\s0 connectors are disconnected from a power source. \fI Optional. Type list of uniline. \fR .SS "ConditionNeedsUpdate" .IX Subsection "ConditionNeedsUpdate" Takes one of \f(CW\*(C`/var/\*(C'\fR or \f(CW\*(C`/etc/\*(C'\fR as argument, possibly prefixed with a \f(CW\*(C`!\*(C'\fR (to invert the condition). This condition may be used to conditionalize units on whether the specified directory requires an update because \&\f(CW\*(C`/usr/\*(C'\fR's modification time is newer than the stamp file \&\f(CW\*(C`.updated\*(C'\fR in the specified directory. This is useful to implement offline updates of the vendor operating system resources in \f(CW\*(C`/usr/\*(C'\fR that require updating of \f(CW\*(C`/etc/\*(C'\fR or \f(CW\*(C`/var/\*(C'\fR on the next following boot. Units making use of this condition should order themselves before \&\fBsystemd\-update\-done.service\fR\|(8), to make sure they run before the stamp file's modification time gets reset indicating a completed update. .PP If the \f(CW\*(C`systemd.condition\-needs\-update=\*(C'\fR option is specified on the kernel command line (taking a boolean), it will override the result of this condition check, taking precedence over any file modification time checks. If it is used \&\f(CW\*(C`systemd\-update\-done.service\*(C'\fR will not have immediate effect on any following \&\f(CW\*(C`ConditionNeedsUpdate\*(C'\fR checks, until the system is rebooted where the kernel command line option is not specified anymore. \fI Optional. Type list of enum. \fR .SS "ConditionFirstBoot" .IX Subsection "ConditionFirstBoot" Takes a boolean argument. This condition may be used to conditionalize units on whether the system is booting up for the first time. This roughly means that \f(CW\*(C`/etc/\*(C'\fR is unpopulated (for details, see \*(L"First Boot Semantics\*(R" in \&\fBmachine\-id\fR\|(5)). This may be used to populate \f(CW\*(C`/etc/\*(C'\fR on the first boot after factory reset, or when a new system instance boots up for the first time. .PP For robustness, units with \f(CW\*(C`ConditionFirstBoot=yes\*(C'\fR should order themselves before \f(CW\*(C`first\-boot\-complete.target\*(C'\fR and pull in this passive target with \&\f(CW\*(C`Wants\*(C'\fR. This ensures that in a case of an aborted first boot, these units will be re-run during the next system startup. .PP If the \f(CW\*(C`systemd.condition\-first\-boot=\*(C'\fR option is specified on the kernel command line (taking a boolean), it will override the result of this condition check, taking precedence over \f(CW\*(C`/etc/machine\-id\*(C'\fR existence checks. \fI Optional. Type list of boolean. \fR .SS "ConditionPathExists" .IX Subsection "ConditionPathExists" Check for the exists of a file. If the specified absolute path name does not exist, the condition will fail. If the absolute path name passed to \&\f(CW\*(C`ConditionPathExists\*(C'\fR is prefixed with an exclamation mark (\f(CW\*(C`!\*(C'\fR), the test is negated, and the unit is only started if the path does not exist. \fI Optional. Type list of uniline. \fR .SS "ConditionPathExistsGlob" .IX Subsection "ConditionPathExistsGlob" \&\f(CW\*(C`ConditionPathExistsGlob\*(C'\fR is similar to \&\f(CW\*(C`ConditionPathExists\*(C'\fR, but checks for the existence of at least one file or directory matching the specified globbing pattern. \fI Optional. Type list of uniline. \fR .SS "ConditionPathIsDirectory" .IX Subsection "ConditionPathIsDirectory" \&\f(CW\*(C`ConditionPathIsDirectory\*(C'\fR is similar to \&\f(CW\*(C`ConditionPathExists\*(C'\fR but verifies that a certain path exists and is a directory. \fI Optional. Type list of uniline. \fR .SS "ConditionPathIsSymbolicLink" .IX Subsection "ConditionPathIsSymbolicLink" \&\f(CW\*(C`ConditionPathIsSymbolicLink\*(C'\fR is similar to \&\f(CW\*(C`ConditionPathExists\*(C'\fR but verifies that a certain path exists and is a symbolic link. \fI Optional. Type list of uniline. \fR .SS "ConditionPathIsMountPoint" .IX Subsection "ConditionPathIsMountPoint" \&\f(CW\*(C`ConditionPathIsMountPoint\*(C'\fR is similar to \&\f(CW\*(C`ConditionPathExists\*(C'\fR but verifies that a certain path exists and is a mount point. \fI Optional. Type list of uniline. \fR .SS "ConditionPathIsReadWrite" .IX Subsection "ConditionPathIsReadWrite" \&\f(CW\*(C`ConditionPathIsReadWrite\*(C'\fR is similar to \&\f(CW\*(C`ConditionPathExists\*(C'\fR but verifies that the underlying file system is readable and writable (i.e. not mounted read-only). \fI Optional. Type list of uniline. \fR .SS "ConditionPathIsEncrypted" .IX Subsection "ConditionPathIsEncrypted" \&\f(CW\*(C`ConditionPathIsEncrypted\*(C'\fR is similar to \&\f(CW\*(C`ConditionPathExists\*(C'\fR but verifies that the underlying file system's backing block device is encrypted using dm\-crypt/LUKS. Note that this check does not cover ext4 per-directory encryption, and only detects block level encryption. Moreover, if the specified path resides on a file system on top of a loopback block device, only encryption above the loopback device is detected. It is not detected whether the file system backing the loopback block device is encrypted. \fI Optional. Type list of uniline. \fR .SS "ConditionDirectoryNotEmpty" .IX Subsection "ConditionDirectoryNotEmpty" \&\f(CW\*(C`ConditionDirectoryNotEmpty\*(C'\fR is similar to \&\f(CW\*(C`ConditionPathExists\*(C'\fR but verifies that a certain path exists and is a non-empty directory. \fI Optional. Type list of uniline. \fR .SS "ConditionFileNotEmpty" .IX Subsection "ConditionFileNotEmpty" \&\f(CW\*(C`ConditionFileNotEmpty\*(C'\fR is similar to \&\f(CW\*(C`ConditionPathExists\*(C'\fR but verifies that a certain path exists and refers to a regular file with a non-zero size. \fI Optional. Type list of uniline. \fR .SS "ConditionFileIsExecutable" .IX Subsection "ConditionFileIsExecutable" \&\f(CW\*(C`ConditionFileIsExecutable\*(C'\fR is similar to \&\f(CW\*(C`ConditionPathExists\*(C'\fR but verifies that a certain path exists, is a regular file, and marked executable. \fI Optional. Type list of uniline. \fR .SS "ConditionUser" .IX Subsection "ConditionUser" \&\f(CW\*(C`ConditionUser\*(C'\fR takes a numeric \f(CW\*(C`UID\*(C'\fR, a \s-1UNIX\s0 user name, or the special value \f(CW@system\fR. This condition may be used to check whether the service manager is running as the given user. The special value \&\f(CW@system\fR can be used to check if the user id is within the system user range. This option is not useful for system services, as the system manager exclusively runs as the root user, and thus the test result is constant. \fI Optional. Type list of uniline. \fR .SS "ConditionGroup" .IX Subsection "ConditionGroup" \&\f(CW\*(C`ConditionGroup\*(C'\fR is similar to \f(CW\*(C`ConditionUser\*(C'\fR but verifies that the service manager's real or effective group, or any of its auxiliary groups, match the specified group or \s-1GID.\s0 This setting does not support the special value \&\f(CW@system\fR. \fI Optional. Type list of uniline. \fR .SS "ConditionControlGroupController" .IX Subsection "ConditionControlGroupController" Verify that the given cgroup controller (eg. \f(CW\*(C`cpu\*(C'\fR) is available for use on the system. For example, a particular controller may not be available if it was disabled on the kernel command line with \f(CW\*(C`cgroup_disable=controller\*(C'\fR. Multiple controllers may be passed with a space separating them; in this case the condition will only pass if all listed controllers are available for use. Controllers unknown to systemd are ignored. Valid controllers are \f(CW\*(C`cpu\*(C'\fR, \f(CW\*(C`cpuacct\*(C'\fR, \f(CW\*(C`io\*(C'\fR, \&\f(CW\*(C`blkio\*(C'\fR, \f(CW\*(C`memory\*(C'\fR, \f(CW\*(C`devices\*(C'\fR, and \&\f(CW\*(C`pids\*(C'\fR. \fI Optional. Type list of uniline. \fR .SS "ConditionMemory" .IX Subsection "ConditionMemory" Verify that the specified amount of system memory is available to the current system. Takes a memory size in bytes as argument, optionally prefixed with a comparison operator \&\f(CW\*(C`<\*(C'\fR, \f(CW\*(C`<=\*(C'\fR, \f(CW\*(C`=\*(C'\fR, \f(CW\*(C`!=\*(C'\fR, \&\f(CW\*(C`\*(C'\fR=>, \f(CW\*(C`\*(C'\fR>. On bare-metal systems compares the amount of physical memory in the system with the specified size, adhering to the specified comparison operator. In containers compares the amount of memory assigned to the container instead. \fI Optional. Type list of uniline. \fR .SS "ConditionCPUs" .IX Subsection "ConditionCPUs" Verify that the specified number of CPUs is available to the current system. Takes a number of CPUs as argument, optionally prefixed with a comparison operator \&\f(CW\*(C`<\*(C'\fR, \f(CW\*(C`<=\*(C'\fR, \f(CW\*(C`=\*(C'\fR, \f(CW\*(C`!=\*(C'\fR, \&\f(CW\*(C`\*(C'\fR=>, \f(CW\*(C`\*(C'\fR>. Compares the number of CPUs in the \s-1CPU\s0 affinity mask configured of the service manager itself with the specified number, adhering to the specified comparison operator. On physical systems the number of CPUs in the affinity mask of the service manager usually matches the number of physical CPUs, but in special and virtual environments might differ. In particular, in containers the affinity mask usually matches the number of CPUs assigned to the container and not the physically available ones. \fI Optional. Type list of uniline. \fR .SS "AssertArchitecture" .IX Subsection "AssertArchitecture" Similar to the \f(CW\*(C`ConditionArchitecture\*(C'\fR, \&\f(CW\*(C`ConditionVirtualization\*(C'\fR, X, 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 (which means this is logged loudly). Note that hitting a configured assertion does not cause the unit to enter the \&\f(CW\*(C`failed\*(C'\fR state (or in fact result in any state change of the unit), it affects only the job queued for it. Use assertion expressions for units that cannot operate when specific requirements are not met, and when this is something the administrator or user should look into. \fI Optional. Type uniline. \fR .SS "AssertVirtualization" .IX Subsection "AssertVirtualization" Similar to the \f(CW\*(C`ConditionArchitecture\*(C'\fR, \&\f(CW\*(C`ConditionVirtualization\*(C'\fR, X, 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 (which means this is logged loudly). Note that hitting a configured assertion does not cause the unit to enter the \&\f(CW\*(C`failed\*(C'\fR state (or in fact result in any state change of the unit), it affects only the job queued for it. Use assertion expressions for units that cannot operate when specific requirements are not met, and when this is something the administrator or user should look into. \fI Optional. Type uniline. \fR .SS "AssertHost" .IX Subsection "AssertHost" Similar to the \f(CW\*(C`ConditionArchitecture\*(C'\fR, \&\f(CW\*(C`ConditionVirtualization\*(C'\fR, X, 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 (which means this is logged loudly). Note that hitting a configured assertion does not cause the unit to enter the \&\f(CW\*(C`failed\*(C'\fR state (or in fact result in any state change of the unit), it affects only the job queued for it. Use assertion expressions for units that cannot operate when specific requirements are not met, and when this is something the administrator or user should look into. \fI Optional. Type uniline. \fR .SS "AssertKernelCommandLine" .IX Subsection "AssertKernelCommandLine" Similar to the \f(CW\*(C`ConditionArchitecture\*(C'\fR, \&\f(CW\*(C`ConditionVirtualization\*(C'\fR, X, 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 (which means this is logged loudly). Note that hitting a configured assertion does not cause the unit to enter the \&\f(CW\*(C`failed\*(C'\fR state (or in fact result in any state change of the unit), it affects only the job queued for it. Use assertion expressions for units that cannot operate when specific requirements are not met, and when this is something the administrator or user should look into. \fI Optional. Type uniline. \fR .SS "AssertKernelVersion" .IX Subsection "AssertKernelVersion" Similar to the \f(CW\*(C`ConditionArchitecture\*(C'\fR, \&\f(CW\*(C`ConditionVirtualization\*(C'\fR, X, 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 (which means this is logged loudly). Note that hitting a configured assertion does not cause the unit to enter the \&\f(CW\*(C`failed\*(C'\fR state (or in fact result in any state change of the unit), it affects only the job queued for it. Use assertion expressions for units that cannot operate when specific requirements are not met, and when this is something the administrator or user should look into. \fI Optional. Type uniline. \fR .SS "AssertSecurity" .IX Subsection "AssertSecurity" Similar to the \f(CW\*(C`ConditionArchitecture\*(C'\fR, \&\f(CW\*(C`ConditionVirtualization\*(C'\fR, X, 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 (which means this is logged loudly). Note that hitting a configured assertion does not cause the unit to enter the \&\f(CW\*(C`failed\*(C'\fR state (or in fact result in any state change of the unit), it affects only the job queued for it. Use assertion expressions for units that cannot operate when specific requirements are not met, and when this is something the administrator or user should look into. \fI Optional. Type uniline. \fR .SS "AssertCapability" .IX Subsection "AssertCapability" Similar to the \f(CW\*(C`ConditionArchitecture\*(C'\fR, \&\f(CW\*(C`ConditionVirtualization\*(C'\fR, X, 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 (which means this is logged loudly). Note that hitting a configured assertion does not cause the unit to enter the \&\f(CW\*(C`failed\*(C'\fR state (or in fact result in any state change of the unit), it affects only the job queued for it. Use assertion expressions for units that cannot operate when specific requirements are not met, and when this is something the administrator or user should look into. \fI Optional. Type uniline. \fR .SS "AssertACPower" .IX Subsection "AssertACPower" Similar to the \f(CW\*(C`ConditionArchitecture\*(C'\fR, \&\f(CW\*(C`ConditionVirtualization\*(C'\fR, X, 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 (which means this is logged loudly). Note that hitting a configured assertion does not cause the unit to enter the \&\f(CW\*(C`failed\*(C'\fR state (or in fact result in any state change of the unit), it affects only the job queued for it. Use assertion expressions for units that cannot operate when specific requirements are not met, and when this is something the administrator or user should look into. \fI Optional. Type uniline. \fR .SS "AssertNeedsUpdate" .IX Subsection "AssertNeedsUpdate" Similar to the \f(CW\*(C`ConditionArchitecture\*(C'\fR, \&\f(CW\*(C`ConditionVirtualization\*(C'\fR, X, 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 (which means this is logged loudly). Note that hitting a configured assertion does not cause the unit to enter the \&\f(CW\*(C`failed\*(C'\fR state (or in fact result in any state change of the unit), it affects only the job queued for it. Use assertion expressions for units that cannot operate when specific requirements are not met, and when this is something the administrator or user should look into. \fI Optional. Type uniline. \fR .SS "AssertFirstBoot" .IX Subsection "AssertFirstBoot" Similar to the \f(CW\*(C`ConditionArchitecture\*(C'\fR, \&\f(CW\*(C`ConditionVirtualization\*(C'\fR, X, 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 (which means this is logged loudly). Note that hitting a configured assertion does not cause the unit to enter the \&\f(CW\*(C`failed\*(C'\fR state (or in fact result in any state change of the unit), it affects only the job queued for it. Use assertion expressions for units that cannot operate when specific requirements are not met, and when this is something the administrator or user should look into. \fI Optional. Type uniline. \fR .SS "AssertPathExists" .IX Subsection "AssertPathExists" Similar to the \f(CW\*(C`ConditionArchitecture\*(C'\fR, \&\f(CW\*(C`ConditionVirtualization\*(C'\fR, X, 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 (which means this is logged loudly). Note that hitting a configured assertion does not cause the unit to enter the \&\f(CW\*(C`failed\*(C'\fR state (or in fact result in any state change of the unit), it affects only the job queued for it. Use assertion expressions for units that cannot operate when specific requirements are not met, and when this is something the administrator or user should look into. \fI Optional. Type uniline. \fR .SS "AssertPathExistsGlob" .IX Subsection "AssertPathExistsGlob" Similar to the \f(CW\*(C`ConditionArchitecture\*(C'\fR, \&\f(CW\*(C`ConditionVirtualization\*(C'\fR, X, 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 (which means this is logged loudly). Note that hitting a configured assertion does not cause the unit to enter the \&\f(CW\*(C`failed\*(C'\fR state (or in fact result in any state change of the unit), it affects only the job queued for it. Use assertion expressions for units that cannot operate when specific requirements are not met, and when this is something the administrator or user should look into. \fI Optional. Type uniline. \fR .SS "AssertPathIsDirectory" .IX Subsection "AssertPathIsDirectory" Similar to the \f(CW\*(C`ConditionArchitecture\*(C'\fR, \&\f(CW\*(C`ConditionVirtualization\*(C'\fR, X, 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 (which means this is logged loudly). Note that hitting a configured assertion does not cause the unit to enter the \&\f(CW\*(C`failed\*(C'\fR state (or in fact result in any state change of the unit), it affects only the job queued for it. Use assertion expressions for units that cannot operate when specific requirements are not met, and when this is something the administrator or user should look into. \fI Optional. Type uniline. \fR .SS "AssertPathIsSymbolicLink" .IX Subsection "AssertPathIsSymbolicLink" Similar to the \f(CW\*(C`ConditionArchitecture\*(C'\fR, \&\f(CW\*(C`ConditionVirtualization\*(C'\fR, X, 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 (which means this is logged loudly). Note that hitting a configured assertion does not cause the unit to enter the \&\f(CW\*(C`failed\*(C'\fR state (or in fact result in any state change of the unit), it affects only the job queued for it. Use assertion expressions for units that cannot operate when specific requirements are not met, and when this is something the administrator or user should look into. \fI Optional. Type uniline. \fR .SS "AssertPathIsMountPoint" .IX Subsection "AssertPathIsMountPoint" Similar to the \f(CW\*(C`ConditionArchitecture\*(C'\fR, \&\f(CW\*(C`ConditionVirtualization\*(C'\fR, X, 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 (which means this is logged loudly). Note that hitting a configured assertion does not cause the unit to enter the \&\f(CW\*(C`failed\*(C'\fR state (or in fact result in any state change of the unit), it affects only the job queued for it. Use assertion expressions for units that cannot operate when specific requirements are not met, and when this is something the administrator or user should look into. \fI Optional. Type uniline. \fR .SS "AssertPathIsReadWrite" .IX Subsection "AssertPathIsReadWrite" Similar to the \f(CW\*(C`ConditionArchitecture\*(C'\fR, \&\f(CW\*(C`ConditionVirtualization\*(C'\fR, X, 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 (which means this is logged loudly). Note that hitting a configured assertion does not cause the unit to enter the \&\f(CW\*(C`failed\*(C'\fR state (or in fact result in any state change of the unit), it affects only the job queued for it. Use assertion expressions for units that cannot operate when specific requirements are not met, and when this is something the administrator or user should look into. \fI Optional. Type uniline. \fR .SS "AssertDirectoryNotEmpty" .IX Subsection "AssertDirectoryNotEmpty" Similar to the \f(CW\*(C`ConditionArchitecture\*(C'\fR, \&\f(CW\*(C`ConditionVirtualization\*(C'\fR, X, 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 (which means this is logged loudly). Note that hitting a configured assertion does not cause the unit to enter the \&\f(CW\*(C`failed\*(C'\fR state (or in fact result in any state change of the unit), it affects only the job queued for it. Use assertion expressions for units that cannot operate when specific requirements are not met, and when this is something the administrator or user should look into. \fI Optional. Type uniline. \fR .SS "AssertFileNotEmpty" .IX Subsection "AssertFileNotEmpty" Similar to the \f(CW\*(C`ConditionArchitecture\*(C'\fR, \&\f(CW\*(C`ConditionVirtualization\*(C'\fR, X, 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 (which means this is logged loudly). Note that hitting a configured assertion does not cause the unit to enter the \&\f(CW\*(C`failed\*(C'\fR state (or in fact result in any state change of the unit), it affects only the job queued for it. Use assertion expressions for units that cannot operate when specific requirements are not met, and when this is something the administrator or user should look into. \fI Optional. Type uniline. \fR .SS "AssertFileIsExecutable" .IX Subsection "AssertFileIsExecutable" Similar to the \f(CW\*(C`ConditionArchitecture\*(C'\fR, \&\f(CW\*(C`ConditionVirtualization\*(C'\fR, X, 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 (which means this is logged loudly). Note that hitting a configured assertion does not cause the unit to enter the \&\f(CW\*(C`failed\*(C'\fR state (or in fact result in any state change of the unit), it affects only the job queued for it. Use assertion expressions for units that cannot operate when specific requirements are not met, and when this is something the administrator or user should look into. \fI Optional. Type uniline. \fR .SS "AssertUser" .IX Subsection "AssertUser" Similar to the \f(CW\*(C`ConditionArchitecture\*(C'\fR, \&\f(CW\*(C`ConditionVirtualization\*(C'\fR, X, 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 (which means this is logged loudly). Note that hitting a configured assertion does not cause the unit to enter the \&\f(CW\*(C`failed\*(C'\fR state (or in fact result in any state change of the unit), it affects only the job queued for it. Use assertion expressions for units that cannot operate when specific requirements are not met, and when this is something the administrator or user should look into. \fI Optional. Type uniline. \fR .SS "AssertGroup" .IX Subsection "AssertGroup" Similar to the \f(CW\*(C`ConditionArchitecture\*(C'\fR, \&\f(CW\*(C`ConditionVirtualization\*(C'\fR, X, 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 (which means this is logged loudly). Note that hitting a configured assertion does not cause the unit to enter the \&\f(CW\*(C`failed\*(C'\fR state (or in fact result in any state change of the unit), it affects only the job queued for it. Use assertion expressions for units that cannot operate when specific requirements are not met, and when this is something the administrator or user should look into. \fI Optional. Type uniline. \fR .SS "AssertControlGroupController" .IX Subsection "AssertControlGroupController" Similar to the \f(CW\*(C`ConditionArchitecture\*(C'\fR, \&\f(CW\*(C`ConditionVirtualization\*(C'\fR, X, 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 (which means this is logged loudly). Note that hitting a configured assertion does not cause the unit to enter the \&\f(CW\*(C`failed\*(C'\fR state (or in fact result in any state change of the unit), it affects only the job queued for it. Use assertion expressions for units that cannot operate when specific requirements are not met, and when this is something the administrator or user should look into. \fI Optional. Type uniline. \fR .SS "StartLimitInterval" .IX Subsection "StartLimitInterval" \&\fBDeprecated\fR \fI Optional. Type uniline. \fR .SS "OnFailureIsolate" .IX Subsection "OnFailureIsolate" \&\fBDeprecated\fR \fI Optional. Type uniline. \fR .SS "FailureAction" .IX Subsection "FailureAction" Configure the action to take when the unit stops and enters a failed state or inactive state. Takes one of \f(CW\*(C`none\*(C'\fR, \f(CW\*(C`reboot\*(C'\fR, \f(CW\*(C`reboot\-force\*(C'\fR, \&\f(CW\*(C`reboot\-immediate\*(C'\fR, \f(CW\*(C`poweroff\*(C'\fR, \f(CW\*(C`poweroff\-force\*(C'\fR, \&\f(CW\*(C`poweroff\-immediate\*(C'\fR, \f(CW\*(C`exit\*(C'\fR, and \f(CW\*(C`exit\-force\*(C'\fR. In system mode, all options are allowed. In user mode, only \f(CW\*(C`none\*(C'\fR, \f(CW\*(C`exit\*(C'\fR, and \&\f(CW\*(C`exit\-force\*(C'\fR are allowed. Both options default to \f(CW\*(C`none\*(C'\fR. .PP If \f(CW\*(C`none\*(C'\fR is set, no action will be triggered. \f(CW\*(C`reboot\*(C'\fR causes a reboot following the normal shutdown procedure (i.e. equivalent to systemctl reboot). \&\f(CW\*(C`reboot\-force\*(C'\fR causes a forced reboot which will terminate all processes forcibly but should cause no dirty file systems on reboot (i.e. equivalent to systemctl reboot \-f) and \&\f(CW\*(C`reboot\-immediate\*(C'\fR causes immediate execution of the \&\fBreboot\fR\|(2) system call, which might result in data loss (i.e. equivalent to systemctl reboot \-ff). Similarly, \&\f(CW\*(C`poweroff\*(C'\fR, \f(CW\*(C`poweroff\-force\*(C'\fR, \f(CW\*(C`poweroff\-immediate\*(C'\fR have the effect of powering down the system with similar semantics. \f(CW\*(C`exit\*(C'\fR causes the manager to exit following the normal shutdown procedure, and \f(CW\*(C`exit\-force\*(C'\fR causes it terminate without shutting down services. When \f(CW\*(C`exit\*(C'\fR or \f(CW\*(C`exit\-force\*(C'\fR is used by default the exit status of the main process of the unit (if this applies) is returned from the service manager. However, this may be overridden with \f(CW\*(C`FailureActionExitStatus\*(C'\fR/\f(CW\*(C`SuccessActionExitStatus\*(C'\fR, see below. \fI Optional. Type enum. choice: 'none', 'reboot', 'reboot\-force', 'reboot\-immediate', 'poweroff', 'poweroff\-force', 'poweroff\-immediate', 'exit', 'exit\-force'. \fR .PP Note: FailureAction is migrated with '\f(CW$service\fR' and with: .IP "\(bu" 4 \&\f(CW$service\fR => \f(CW\*(C`\- \- Service FailureAction\*(C'\fR .SS "SuccessAction" .IX Subsection "SuccessAction" Configure the action to take when the unit stops and enters a failed state or inactive state. Takes one of \f(CW\*(C`none\*(C'\fR, \f(CW\*(C`reboot\*(C'\fR, \f(CW\*(C`reboot\-force\*(C'\fR, \&\f(CW\*(C`reboot\-immediate\*(C'\fR, \f(CW\*(C`poweroff\*(C'\fR, \f(CW\*(C`poweroff\-force\*(C'\fR, \&\f(CW\*(C`poweroff\-immediate\*(C'\fR, \f(CW\*(C`exit\*(C'\fR, and \f(CW\*(C`exit\-force\*(C'\fR. In system mode, all options are allowed. In user mode, only \f(CW\*(C`none\*(C'\fR, \f(CW\*(C`exit\*(C'\fR, and \&\f(CW\*(C`exit\-force\*(C'\fR are allowed. Both options default to \f(CW\*(C`none\*(C'\fR. .PP If \f(CW\*(C`none\*(C'\fR is set, no action will be triggered. \f(CW\*(C`reboot\*(C'\fR causes a reboot following the normal shutdown procedure (i.e. equivalent to systemctl reboot). \&\f(CW\*(C`reboot\-force\*(C'\fR causes a forced reboot which will terminate all processes forcibly but should cause no dirty file systems on reboot (i.e. equivalent to systemctl reboot \-f) and \&\f(CW\*(C`reboot\-immediate\*(C'\fR causes immediate execution of the \&\fBreboot\fR\|(2) system call, which might result in data loss (i.e. equivalent to systemctl reboot \-ff). Similarly, \&\f(CW\*(C`poweroff\*(C'\fR, \f(CW\*(C`poweroff\-force\*(C'\fR, \f(CW\*(C`poweroff\-immediate\*(C'\fR have the effect of powering down the system with similar semantics. \f(CW\*(C`exit\*(C'\fR causes the manager to exit following the normal shutdown procedure, and \f(CW\*(C`exit\-force\*(C'\fR causes it terminate without shutting down services. When \f(CW\*(C`exit\*(C'\fR or \f(CW\*(C`exit\-force\*(C'\fR is used by default the exit status of the main process of the unit (if this applies) is returned from the service manager. However, this may be overridden with \f(CW\*(C`FailureActionExitStatus\*(C'\fR/\f(CW\*(C`SuccessActionExitStatus\*(C'\fR, see below. \fI Optional. Type enum. choice: 'none', 'reboot', 'reboot\-force', 'reboot\-immediate', 'poweroff', 'poweroff\-force', 'poweroff\-immediate', 'exit', 'exit\-force'. \fR .PP Note: SuccessAction is migrated with '\f(CW$service\fR' and with: .IP "\(bu" 4 \&\f(CW$service\fR => \f(CW\*(C`\- \- Service SuccessAction\*(C'\fR .SS "StartLimitBurst" .IX Subsection "StartLimitBurst" Configure unit start rate limiting. Units which are started more than burst times within an interval time interval are not permitted to start any more. Use \f(CW\*(C`StartLimitIntervalSec\*(C'\fR to configure the checking interval (defaults to \f(CW\*(C`DefaultStartLimitIntervalSec\*(C'\fR in manager configuration file, set it to 0 to disable any kind of rate limiting). Use \f(CW\*(C`StartLimitBurst\*(C'\fR to configure how many starts per interval are allowed (defaults to \f(CW\*(C`DefaultStartLimitBurst\*(C'\fR in manager configuration file). These configuration options are particularly useful in conjunction with the service setting \&\f(CW\*(C`Restart\*(C'\fR (see \&\fBsystemd.service\fR\|(5)); however, they apply to all kinds of starts (including manual), not just those triggered by the \&\f(CW\*(C`Restart\*(C'\fR logic. Note that units which are configured for \f(CW\*(C`Restart\*(C'\fR and which reach the start limit are not attempted to be restarted anymore; however, they may still be restarted manually at a later point, after the interval has passed. From this point on, the restart logic is activated again. Note that systemctl reset-failed will cause the restart rate counter for a service to be flushed, which is useful if the administrator wants to manually start a unit and the start limit interferes with that. Note that this rate-limiting is enforced after any unit condition checks are executed, and hence unit activations with failing conditions do not count towards this rate limit. This setting does not apply to slice, target, device, and scope units, since they are unit types whose activation may either never fail, or may succeed only a single time. .PP When a unit is unloaded due to the garbage collection logic (see above) its rate limit counters are flushed out too. This means that configuring start rate limiting for a unit that is not referenced continuously has no effect. \fI Optional. Type uniline. \fR .PP Note: StartLimitBurst is migrated with '\f(CW$service\fR' and with: .IP "\(bu" 4 \&\f(CW$service\fR => \f(CW\*(C`\- \- Service StartLimitBurst\*(C'\fR .SS "StartLimitIntervalSec" .IX Subsection "StartLimitIntervalSec" Configure unit start rate limiting. Units which are started more than burst times within an interval time interval are not permitted to start any more. Use \f(CW\*(C`StartLimitIntervalSec\*(C'\fR to configure the checking interval (defaults to \f(CW\*(C`DefaultStartLimitIntervalSec\*(C'\fR in manager configuration file, set it to 0 to disable any kind of rate limiting). Use \f(CW\*(C`StartLimitBurst\*(C'\fR to configure how many starts per interval are allowed (defaults to \f(CW\*(C`DefaultStartLimitBurst\*(C'\fR in manager configuration file). These configuration options are particularly useful in conjunction with the service setting \&\f(CW\*(C`Restart\*(C'\fR (see \&\fBsystemd.service\fR\|(5)); however, they apply to all kinds of starts (including manual), not just those triggered by the \&\f(CW\*(C`Restart\*(C'\fR logic. Note that units which are configured for \f(CW\*(C`Restart\*(C'\fR and which reach the start limit are not attempted to be restarted anymore; however, they may still be restarted manually at a later point, after the interval has passed. From this point on, the restart logic is activated again. Note that systemctl reset-failed will cause the restart rate counter for a service to be flushed, which is useful if the administrator wants to manually start a unit and the start limit interferes with that. Note that this rate-limiting is enforced after any unit condition checks are executed, and hence unit activations with failing conditions do not count towards this rate limit. This setting does not apply to slice, target, device, and scope units, since they are unit types whose activation may either never fail, or may succeed only a single time. .PP When a unit is unloaded due to the garbage collection logic (see above) its rate limit counters are flushed out too. This means that configuring start rate limiting for a unit that is not referenced continuously has no effect. \fI Optional. Type uniline. \fR .PP Note: StartLimitIntervalSec is migrated with '\f(CW\*(C`$unit || $service\*(C'\fR' and with: .IP "\(bu" 4 \&\f(CW$service\fR => \f(CW\*(C`\- \- Service StartLimitInterval\*(C'\fR .IP "\(bu" 4 \&\f(CW$unit\fR => \f(CW\*(C`\- StartLimitInterval\*(C'\fR .SS "RebootArgument" .IX Subsection "RebootArgument" Configure the optional argument for the \&\fBreboot\fR\|(2) system call if \&\f(CW\*(C`StartLimitAction\*(C'\fR or \f(CW\*(C`FailureAction\*(C'\fR is a reboot action. This works just like the optional argument to systemctl reboot command. \fI Optional. Type uniline. \fR .PP Note: RebootArgument is migrated with '\f(CW$service\fR' and with: .IP "\(bu" 4 \&\f(CW$service\fR => \f(CW\*(C`\- \- Service RebootArgument\*(C'\fR .SH "SEE ALSO" .IX Header "SEE ALSO" .IP "\(bu" 4 cme