[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[shepherd] 04/04: herd: Properly interpret value of 'transient?' propert
From: |
Ludovic Courtès |
Subject: |
[shepherd] 04/04: herd: Properly interpret value of 'transient?' property. |
Date: |
Sun, 23 Apr 2023 17:27:01 -0400 (EDT) |
civodul pushed a commit to branch master
in repository shepherd.
commit ab0c7ec989d3afe1933aebb2e03c1d6ecb558ca6
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sun Apr 23 23:24:40 2023 +0200
herd: Properly interpret value of 'transient?' property.
Since 253ccf82de21b2a94e7609a01a853073df6157f5 the 'transient?' field
would always have truth value.
* modules/shepherd/scripts/herd.scm (sexp->live-service): Use TRANSIENT?
as-is.
---
modules/shepherd/scripts/herd.scm | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/modules/shepherd/scripts/herd.scm
b/modules/shepherd/scripts/herd.scm
index 98407ac..5a1e666 100644
--- a/modules/shepherd/scripts/herd.scm
+++ b/modules/shepherd/scripts/herd.scm
@@ -79,10 +79,7 @@ into a @code{live-service} record."
status-changes last-respawns startup-failures
one-shot? transient?)
(live-service provides requires one-shot?
- (if (sloppy-assq 'transient? properties)
- transient?
- (and running *unspecified*))
- respawn?
+ transient? respawn?
enabled?
(or status (if running 'running 'stopped))