diff options
author | Janne Heß <janne@hess.ooo> | 2022-03-06 19:22:04 +0100 |
---|---|---|
committer | Janne Heß <janne@hess.ooo> | 2022-03-11 13:30:03 +0100 |
commit | c96180c53fcd4f36a7163c3e59a2e6bcd9233f06 (patch) | |
tree | 847975eeeb0343c547d1390a2c2da4c2804ecd27 /nixos/doc | |
parent | acb535fb61930c657be9ae5eca221a47391c91e6 (diff) |
nixos/switch-to-configuration: Ignore some unit keys
Some unit keys don't need to restart the service to make them effective. Reduce the amount of service restarts by ignoring these keys
Diffstat (limited to 'nixos/doc')
-rw-r--r-- | nixos/doc/manual/development/unit-handling.section.md | 3 | ||||
-rw-r--r-- | nixos/doc/manual/from_md/development/unit-handling.section.xml | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/nixos/doc/manual/development/unit-handling.section.md b/nixos/doc/manual/development/unit-handling.section.md index bd4fe9e670f5e..c51704ad0da44 100644 --- a/nixos/doc/manual/development/unit-handling.section.md +++ b/nixos/doc/manual/development/unit-handling.section.md @@ -17,7 +17,8 @@ checks: them and comparing their contents. If they are different but only `X-Reload-Triggers` in the `[Unit]` section is changed, **reload** the unit. The NixOS module system allows setting these triggers with the option - [systemd.services.\<name\>.reloadTriggers](#opt-systemd.services). If the + [systemd.services.\<name\>.reloadTriggers](#opt-systemd.services). There are + some additional keys in the `[Unit]` section that are ignored as well. If the unit files differ in any way, the following actions are performed: - `.path` and `.slice` units are ignored. There is no need to restart them diff --git a/nixos/doc/manual/from_md/development/unit-handling.section.xml b/nixos/doc/manual/from_md/development/unit-handling.section.xml index 57c4754c0018d..642cc5cccc79e 100644 --- a/nixos/doc/manual/from_md/development/unit-handling.section.xml +++ b/nixos/doc/manual/from_md/development/unit-handling.section.xml @@ -38,8 +38,9 @@ <emphasis role="strong">reload</emphasis> the unit. The NixOS module system allows setting these triggers with the option <link linkend="opt-systemd.services">systemd.services.<name>.reloadTriggers</link>. - If the unit files differ in any way, the following actions are - performed: + There are some additional keys in the <literal>[Unit]</literal> + section that are ignored as well. If the unit files differ in + any way, the following actions are performed: </para> <itemizedlist> <listitem> |