Subject: [PATCH v1] Add user-processes to services that prevent clean shutdowns. (Closes: #76338)

From: Felix Lechner <[email-masked]>
Date: Thu, 20 Feb 2025 11:50:44 -0800

It's at least a partial fix.

Change-Id: Ifca81e4311f5145a3bb36f1ea338554079e121e2
---
 gnu/services/mail.scm | 2 +-
 gnu/services/pm.scm   | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/services/mail.scm b/gnu/services/mail.scm
index 18b482272c..210a226ccf 100644
--- a/gnu/services/mail.scm
+++ b/gnu/services/mail.scm
@@ -2317,7 +2317,7 @@ (define-configuration/no-serialization rspamd-configuration
    (boolean #f)
    "Do not apply Jinja templates.")
   (shepherd-requirements
-   (list-of-symbols '(loopback))
+   (list-of-symbols '(loopback user-processes))
    "This is a list of symbols naming Shepherd services that this service
 will depend on."))
 
diff --git a/gnu/services/pm.scm b/gnu/services/pm.scm
index 1978de55d4..fa18af254b 100644
--- a/gnu/services/pm.scm
+++ b/gnu/services/pm.scm
@@ -512,6 +512,7 @@ (define (thermald-shepherd-service config)
    (shepherd-service
     (provision '(thermald))
     (documentation "Run thermald cpu frequency scaling.")
+    (requirement '(user-processes))
     (start #~(make-forkexec-constructor
               '(#$(file-append (thermald-thermald config) "/sbin/thermald")
                 "--no-daemon"

base-commit: 40e83f8f72fc831c94dc6d42664be50db755344b
-- 
2.48.1