[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[shepherd] 03/07: service: Choose a respawn limit slightly more lax.
From: |
Ludovic Courtès |
Subject: |
[shepherd] 03/07: service: Choose a respawn limit slightly more lax. |
Date: |
Wed, 23 Mar 2016 21:41:04 +0000 |
civodul pushed a commit to branch master
in repository shepherd.
commit 654fc4883e0386fa3b615721458fb2d36293accc
Author: Ludovic Courtès <address@hidden>
Date: Wed Mar 23 19:23:14 2016 +0100
service: Choose a respawn limit slightly more lax.
* modules/shepherd/service.scm (respawn-limit): Change to '(5 . 7).
---
modules/shepherd/service.scm | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/modules/shepherd/service.scm b/modules/shepherd/service.scm
index 791bb2a..8f720de 100644
--- a/modules/shepherd/service.scm
+++ b/modules/shepherd/service.scm
@@ -122,7 +122,12 @@
'())))
;; Respawning CAR times in CDR seconds will disable the service.
-(define respawn-limit (cons 5 5))
+;;
+;; XXX: The terrible hack in (shepherd) using SIGALRM to work around
+;; unreliable SIGCHLD delivery means that it might take up to 1 second for
+;; SIGCHLD to be delivered. Thus, arrange for the car to be lower than the
+;; cdr.
+(define respawn-limit '(5 . 7))
(define (respawn-limit-hit? respawns times seconds)
"Return true of RESPAWNS, the list of times at which a given service was
- [shepherd] branch master updated (66662cf -> e589b12), Ludovic Courtès, 2016/03/23
- [shepherd] 03/07: service: Choose a respawn limit slightly more lax.,
Ludovic Courtès <=
- [shepherd] 07/07: Update 'NEWS'., Ludovic Courtès, 2016/03/23
- [shepherd] 06/07: build: Bump to 0.3.1., Ludovic Courtès, 2016/03/23
- [shepherd] 02/07: service: Make sure the respawn limit is honored., Ludovic Courtès, 2016/03/23
- [shepherd] 01/07: service: Fix harmless typo., Ludovic Courtès, 2016/03/23
- [shepherd] 04/07: service: Improve wording of 'waitpid' "error" message., Ludovic Courtès, 2016/03/23
- [shepherd] 05/07: herd: Display the last respawn time., Ludovic Courtès, 2016/03/23