GNU bug report logs - #76338
shepherd restarts service during shutdown and then waits forever

Previous Next

Package: guix;

Reported by: Dariqq <dariqq <at> posteo.net>

Date: Sun, 16 Feb 2025 14:40:03 UTC

Severity: grave

Tags: patch

Merged with 76368

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #24 received at 76338 <at> debbugs.gnu.org (full text, mbox):

From: Felix Lechner <felix.lechner <at> lease-up.com>
To: 76338 <at> debbugs.gnu.org
Cc: Dariqq <dariqq <at> posteo.net>,
 Ludovic Courtès <ludo <at> gnu.org>,
 Ashvith Shetty <ashvithshetty0010 <at> zohomail.in>, Tomas Volf <~@wolfsden.cz>,
 Felix Lechner <felix.lechner <at> lease-up.com>
Subject: [PATCH v1] Add user-processes to services that prevent clean
 shutdowns. (Closes: #76338)
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





This bug report was last modified 80 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.