summary refs log tree commit diff
path: root/nixos/doc
diff options
context:
space:
mode:
authorJanne Heß <janne@hess.ooo>2022-03-13 17:50:36 +0100
committerGitHub <noreply@github.com>2022-03-13 17:50:36 +0100
commit3148b3d3653902486d93740c93d3f4320c883c73 (patch)
tree66576eb2e5bd3c3e10151b5fb1703f958e9125a4 /nixos/doc
parentd0e0d14a1953d7eeadb05c15d0e010583b41f3be (diff)
parent461c1c9e86ccccd2d6c18c3ef9117ddab550e068 (diff)
downloadnixpkgs-3148b3d3653902486d93740c93d3f4320c883c73.tar
nixpkgs-3148b3d3653902486d93740c93d3f4320c883c73.tar.gz
nixpkgs-3148b3d3653902486d93740c93d3f4320c883c73.tar.bz2
nixpkgs-3148b3d3653902486d93740c93d3f4320c883c73.tar.lz
nixpkgs-3148b3d3653902486d93740c93d3f4320c883c73.tar.xz
nixpkgs-3148b3d3653902486d93740c93d3f4320c883c73.tar.zst
nixpkgs-3148b3d3653902486d93740c93d3f4320c883c73.zip
Merge pull request #163069 from helsinki-systems/feat/minor-stc-improvements
nixos/switch-to-configuration: Few minor/medium improvements
Diffstat (limited to 'nixos/doc')
-rw-r--r--nixos/doc/manual/development/unit-handling.section.md6
-rw-r--r--nixos/doc/manual/from_md/development/unit-handling.section.xml10
2 files changed, 13 insertions, 3 deletions
diff --git a/nixos/doc/manual/development/unit-handling.section.md b/nixos/doc/manual/development/unit-handling.section.md
index bd4fe9e670f..a7ccb3dbd04 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
@@ -33,6 +34,9 @@ checks:
   - The rest of the units (mostly `.service` units) are then **reload**ed if
     `X-ReloadIfChanged` in the `[Service]` section is set to `true` (exposed
     via [systemd.services.\<name\>.reloadIfChanged](#opt-systemd.services)).
+    A little exception is done for units that were deactivated in the meantime,
+    for example because they require a unit that got stopped before. These
+    are **start**ed instead of reloaded.
 
   - If the reload flag is not set, some more flags decide if the unit is
     skipped. These flags are `X-RestartIfChanged` in the `[Service]` section
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 57c4754c001..4c980e1213a 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.&lt;name&gt;.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>
@@ -71,6 +72,11 @@
             <literal>[Service]</literal> section is set to
             <literal>true</literal> (exposed via
             <link linkend="opt-systemd.services">systemd.services.&lt;name&gt;.reloadIfChanged</link>).
+            A little exception is done for units that were deactivated
+            in the meantime, for example because they require a unit
+            that got stopped before. These are
+            <emphasis role="strong">start</emphasis>ed instead of
+            reloaded.
           </para>
         </listitem>
         <listitem>