summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRichard Sent <richard@freakingpenguin.com>2024-12-03 18:28:13 -0500
committerLudovic Courtès <ludo@gnu.org>2024-12-09 23:15:45 +0100
commitb0421cc964ce11c1e43da5ad2a8e31205539737c (patch)
tree47dccd8497c5ec9e9a80c8df9bfce66610f98371 /doc
parent89ed6e80bbc529a79a9ffd1a6b43f1a070751295 (diff)
services: admin: Improve use of unattended-upgrade reboot? field.
This ensures the unattended upgrade job successfully reboots regardless of the value for services-to-restart. Previously the mcron service may be restarted which would halt script execution before the system rebooted. * gnu/services/admin.scm (unattended-upgrade-mcron-jobs): Do not restart services when reboot? is #t. * doc/guix.texi (Unattended Upgrades): Document it. Change-Id: I8e486a764ec1dc5c3090130cc447a0cc3f5a2e00 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 43aa1ad71a..a2915de954 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -23337,6 +23337,10 @@ system to use for the upgrade. If no value is provided the
This field specifies whether the system should reboot after completing
an unattended upgrade.
+When @code{reboot?} is @code{#t}, services are not restarted before
+rebooting. This means that the value for @code{services-to-restart} is
+ignored. The updated services will be started after the system reboots.
+
@item @code{services-to-restart} (default: @code{'(mcron)})
This field specifies the Shepherd services to restart when the upgrade
completes.