summary refs log tree commit diff
path: root/nixos/doc/manual
diff options
context:
space:
mode:
authorJanne Heß <janne@hess.ooo>2022-03-06 22:43:47 +0100
committerJanne Heß <janne@hess.ooo>2022-03-11 14:05:19 +0100
commitbc58430068d0bd0ffd3ef561a92a05f5970d149c (patch)
treedee35f2bf657e7056bdae49e67746089664334a1 /nixos/doc/manual
parent3052d3aa50674f2cfeee7c7ddf42c36d84013e48 (diff)
downloadnixpkgs-bc58430068d0bd0ffd3ef561a92a05f5970d149c.tar
nixpkgs-bc58430068d0bd0ffd3ef561a92a05f5970d149c.tar.gz
nixpkgs-bc58430068d0bd0ffd3ef561a92a05f5970d149c.tar.bz2
nixpkgs-bc58430068d0bd0ffd3ef561a92a05f5970d149c.tar.lz
nixpkgs-bc58430068d0bd0ffd3ef561a92a05f5970d149c.tar.xz
nixpkgs-bc58430068d0bd0ffd3ef561a92a05f5970d149c.tar.zst
nixpkgs-bc58430068d0bd0ffd3ef561a92a05f5970d149c.zip
nixos/switch-to-configuration: Fix reloading of stopped services
Diffstat (limited to 'nixos/doc/manual')
-rw-r--r--nixos/doc/manual/development/unit-handling.section.md3
-rw-r--r--nixos/doc/manual/from_md/development/unit-handling.section.xml5
2 files changed, 8 insertions, 0 deletions
diff --git a/nixos/doc/manual/development/unit-handling.section.md b/nixos/doc/manual/development/unit-handling.section.md
index c51704ad0da..a7ccb3dbd04 100644
--- a/nixos/doc/manual/development/unit-handling.section.md
+++ b/nixos/doc/manual/development/unit-handling.section.md
@@ -34,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 642cc5cccc7..4c980e1213a 100644
--- a/nixos/doc/manual/from_md/development/unit-handling.section.xml
+++ b/nixos/doc/manual/from_md/development/unit-handling.section.xml
@@ -72,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>