guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: services: shepherd: Increase the PID file timeout to 30s.


From: guix-commits
Subject: 01/02: services: shepherd: Increase the PID file timeout to 30s.
Date: Tue, 14 Apr 2020 18:03:38 -0400 (EDT)

civodul pushed a commit to branch version-1.1.0
in repository guix.

commit 8aa752ba222c3d7ec094bb7947359f75f2a6bb2c
Author: Ludovic Courtès <address@hidden>
AuthorDate: Tue Apr 14 23:58:55 2020 +0200

    services: shepherd: Increase the PID file timeout to 30s.
    
    When running the installation image off a DVD, early I/O operations are
    extremely slow, to the point that something like dbus-daemon would need
    ~20s to start.  This change works around the issue.
    
    Fixes <https://bugs.gnu.org/40572>.
    Reported by Florian Pelz <address@hidden>.
    
    * gnu/services/shepherd.scm (shepherd-configuration-file): Set
    %pid-file-timeout to 30.
---
 gnu/services/shepherd.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/services/shepherd.scm b/gnu/services/shepherd.scm
index bad0898..9906ae4 100644
--- a/gnu/services/shepherd.scm
+++ b/gnu/services/shepherd.scm
@@ -291,6 +291,13 @@ and return the resulting '.go' file."
           (default-environment-variables
             '("PATH=/run/current-system/profile/bin"))
 
+          ;; Booting off a DVD, especially on a slow machine, can make
+          ;; everything slow.  Thus, increase the timeout compared to the
+          ;; default 5s in the Shepherd 0.7.0.  See
+          ;; <https://bugs.gnu.org/40572>.
+          ;; XXX: Use something better when the next Shepherd is out.
+          (set! (@@ (shepherd service) %pid-file-timeout) 30)
+
           ;; Arrange to spawn a REPL if something goes wrong.  This is better
           ;; than a kernel panic.
           (call-with-error-handling



reply via email to

[Prev in Thread] Current Thread [Next in Thread]