diff --git a/man/systemd.automount.xml b/man/systemd.automount.xml index 1b0ae832da..93bae2a6dc 100644 --- a/man/systemd.automount.xml +++ b/man/systemd.automount.xml @@ -97,11 +97,9 @@ An implicit Before= dependency is created between an automount unit and the mount unit it activates. - Automount units acquire automatic Before= - and Conflicts= on - umount.target in order to be stopped during - shutdown, unless DefaultDependencies=no is - set. + Automount units acquire automatic Before= and Conflicts= on + umount.target in order to be stopped during shutdown, unless + DefaultDependencies=no is set in the [Unit] section. diff --git a/man/systemd.mount.xml b/man/systemd.mount.xml index 4a8d265fed..f116782b40 100644 --- a/man/systemd.mount.xml +++ b/man/systemd.mount.xml @@ -128,26 +128,17 @@ systemd-quotacheck.service and quotaon.service are added. - For mount units with - DefaultDependencies=yes (the default) a couple - additional dependencies are added. Mount units referring to local - file systems automatically gain an After= - dependency on local-fs-pre.target. Network - mount units automatically acquire After= - dependencies on remote-fs-pre.target, - network.target and - network-online.target. Towards the latter a - Wants= unit is added as well. Mount units - referring to local and network file systems are distinguished by - their file system type specification. In some cases this is not - sufficient (for example network block device based mounts, such as - iSCSI), in which case may be added to the - mount option string of the unit, which forces systemd to consider the - mount unit a network mount. Mount units (regardless if local or - network) also acquire automatic Before= and - Conflicts= on - umount.target in order to be stopped - during shutdown. + For mount units with DefaultDependencies=yes in the [Unit] section (the + default) a couple additional dependencies are added. Mount units referring to local file systems automatically gain + an After= dependency on local-fs-pre.target. Network mount units + automatically acquire After= dependencies on remote-fs-pre.target, + network.target and network-online.target. Towards the latter a + Wants= unit is added as well. Mount units referring to local and network file systems are + distinguished by their file system type specification. In some cases this is not sufficient (for example network + block device based mounts, such as iSCSI), in which case may be added to the mount option + string of the unit, which forces systemd to consider the mount unit a network mount. Mount units (regardless if + local or network) also acquire automatic Before= and Conflicts= on + umount.target in order to be stopped during shutdown. Additional implicit dependencies may be added as result of execution and resource control parameters as documented in diff --git a/man/systemd.path.xml b/man/systemd.path.xml index 1bd65ce86d..7200c8fe27 100644 --- a/man/systemd.path.xml +++ b/man/systemd.path.xml @@ -91,16 +91,12 @@ An implicit Before= dependency is added between a path unit and the unit it is supposed to activate. - Unless DefaultDependencies=false is used, - path units will implicitly have dependencies of type - Before= on paths.target, - dependencies of type After= and - Requires= on - sysinit.target, and have dependencies of type - Conflicts= and Before= on - shutdown.target. These ensure that path units - are terminated cleanly prior to system shutdown. Only path units - involved with early boot or late system shutdown should disable + Unless DefaultDependencies=false in the [Unit] section is used, path + units will implicitly have dependencies of type Before= on paths.target, + dependencies of type After= and Requires= on + sysinit.target, and have dependencies of type Conflicts= and + Before= on shutdown.target. These ensure that path units are terminated + cleanly prior to system shutdown. Only path units involved with early boot or late system shutdown should disable this option. diff --git a/man/systemd.service.xml b/man/systemd.service.xml index e55534700a..6641dfed4f 100644 --- a/man/systemd.service.xml +++ b/man/systemd.service.xml @@ -100,18 +100,13 @@ their activated .socket units via an automatic After= dependency. - Unless DefaultDependencies= is set to - , service units will implicitly have - dependencies of type Requires= and - After= on sysinit.target, - a dependency of type After= on - basic.target as well as dependencies of - type Conflicts= and Before= - on shutdown.target. These ensure that normal - service units pull in basic system initialization, and are - terminated cleanly prior to system shutdown. Only services - involved with early boot or late system shutdown should disable - this option. + Unless DefaultDependencies= in the [Unit] is set to + , service units will implicitly have dependencies of type Requires= and + After= on sysinit.target, a dependency of type After= on + basic.target as well as dependencies of type Conflicts= and + Before= on shutdown.target. These ensure that normal service units pull in + basic system initialization, and are terminated cleanly prior to system shutdown. Only services involved with early + boot or late system shutdown should disable this option. Instanced service units (i.e. service units with an @ in their name) are assigned by default a per-template slice unit (see diff --git a/man/systemd.slice.xml b/man/systemd.slice.xml index 5c87bf0260..16247628af 100644 --- a/man/systemd.slice.xml +++ b/man/systemd.slice.xml @@ -106,14 +106,10 @@ After= and Requires= on their immediate parent slice unit. - Unless DefaultDependencies=false - is used, slice units will implicitly have dependencies of - type Conflicts= and - Before= on - shutdown.target. These ensure - that slice units are removed prior to system - shutdown. Only slice units involved with early boot or - late system shutdown should disable this option. + Unless DefaultDependencies=false is used in the [Unit] section, slice + units will implicitly have dependencies of type Conflicts= and Before= on + shutdown.target. These ensure that slice units are removed prior to system shutdown. Only + slice units involved with early boot or late system shutdown should disable this option. diff --git a/man/systemd.socket.xml b/man/systemd.socket.xml index 43841c2399..2d6339680b 100644 --- a/man/systemd.socket.xml +++ b/man/systemd.socket.xml @@ -97,16 +97,12 @@ foo@.service must exist from which services are instantiated for each incoming connection. - Unless DefaultDependencies= is set to - , socket units will implicitly have - dependencies of type Requires= and - After= on sysinit.target - as well as dependencies of type Conflicts= and - Before= on - shutdown.target. These ensure that socket - units pull in basic system initialization, and are terminated - cleanly prior to system shutdown. Only sockets involved with early - boot or late system shutdown should disable this option. + Unless DefaultDependencies= in the [Unit] section is set to + , socket units will implicitly have dependencies of type Requires= and + After= on sysinit.target as well as dependencies of type + Conflicts= and Before= on shutdown.target. These ensure + that socket units pull in basic system initialization, and are terminated cleanly prior to system shutdown. Only + sockets involved with early boot or late system shutdown should disable this option. Socket units will have a Before= dependency on the service which they trigger added implicitly. No diff --git a/man/systemd.swap.xml b/man/systemd.swap.xml index 69d4be4769..6fc4c7bf13 100644 --- a/man/systemd.swap.xml +++ b/man/systemd.swap.xml @@ -95,12 +95,10 @@ dependencies on the device units or the mount units of the files they are activated from. - Swap units with DefaultDependencies= - enabled implicitly acquire a Conflicts= and an - After= dependency on - umount.target so that they are deactivated at - shutdown, unless DefaultDependencies=no is - specified. + Swap units with DefaultDependencies= in the [Unit] section enabled + implicitly acquire a Conflicts= and an After= dependency on + umount.target so that they are deactivated at shutdown, unless + DefaultDependencies=no is specified. Additional implicit dependencies may be added as result of execution and resource control parameters as documented in diff --git a/man/systemd.target.xml b/man/systemd.target.xml index bd4ab3903e..ab910d75dd 100644 --- a/man/systemd.target.xml +++ b/man/systemd.target.xml @@ -82,14 +82,11 @@ Automatic Dependencies - Unless DefaultDependencies= is set to - , target units will implicitly complement all - configured dependencies of type Wants=, - Requires= with dependencies of type - After=, unless an ordering dependency of any - kind between the target and the respective other unit is already - in place. Note that this behaviour is disabled if either unit has - DefaultDependencies=no. + Unless DefaultDependencies= in the [Unit] section is set to + , target units will implicitly complement all configured dependencies of type + Wants=, Requires= with dependencies of type After=, unless + an ordering dependency of any kind between the target and the respective other unit is already in place. Note that + this behaviour is disabled if either unit has DefaultDependencies=no. diff --git a/man/systemd.timer.xml b/man/systemd.timer.xml index 29e235e2dc..22c83f790f 100644 --- a/man/systemd.timer.xml +++ b/man/systemd.timer.xml @@ -81,21 +81,15 @@ Timer units automatically gain a Before= dependency on the service they are supposed to activate. - Unless DefaultDependencies= is set to - , all timer units will implicitly have - dependencies of type Requires= and - After= on sysinit.target, - a dependency of type Before= on - timers.target, as well as - Conflicts= and Before= on - shutdown.target to ensure that they are - stopped cleanly prior to system shutdown. Timer units with at - least one OnCalendar= directive will have an - additional After= dependency on - timer-sync.target to avoid being started - before the system clock has been correctly set. Only timer units - involved with early boot or late system shutdown should disable - the DefaultDependencies= option. + Unless DefaultDependencies= in the [Unit] section is set to + , all timer units will implicitly have dependencies of type Requires= and + After= on sysinit.target, a dependency of type Before= + on timers.target, as well as Conflicts= and Before= on + shutdown.target to ensure that they are stopped cleanly prior to system shutdown. Timer units + with at least one OnCalendar= directive will have an additional After= + dependency on timer-sync.target to avoid being started before the system clock has been + correctly set. Only timer units involved with early boot or late system shutdown should disable the + DefaultDependencies= option.