[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/09: services: agetty: 'stop' method does nothing when running is 'idl
From: |
guix-commits |
Subject: |
03/09: services: agetty: 'stop' method does nothing when running is 'idle. |
Date: |
Sat, 20 May 2023 19:17:11 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit d99a4c4cb3b52b1ff9dc20ad05c51624256c6405
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sat May 20 00:42:20 2023 +0200
services: agetty: 'stop' method does nothing when running is 'idle.
This is a followup to 57e731c358d000f614fbda23654cae6a5e79df80.
* gnu/services/base.scm (agetty-shepherd-service): Change 'stop' method
to return #f immediately when the running value is 'idle.
---
gnu/services/base.scm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index fdc2c8c764..79c9661567 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -1187,7 +1187,11 @@ no serial port console requested; doing nothing~%"
'#$(car provision))
'idle)))
args)))))
- (stop #~(make-kill-destructor))))))
+ (stop #~(let ((stop (make-kill-destructor)))
+ (lambda (running)
+ (if (eq? 'idle running)
+ #f
+ (stop running)))))))))
(define agetty-service-type
(service-type (name 'agetty)
- branch master updated (bd7b795aeb -> 7ddc239fc3), guix-commits, 2023/05/20
- 04/09: services: root-file-system: Remove reference to 'stop-logging'., guix-commits, 2023/05/20
- 01/09: doc: Clarify instructions for hibernation on a swap file., guix-commits, 2023/05/20
- 02/09: system: pam: Change 'stop' method to return #f., guix-commits, 2023/05/20
- 07/09: gnu: guile-dsv: Update to 0.6.0., guix-commits, 2023/05/20
- 05/09: services: Transient inetd services inherit requirements., guix-commits, 2023/05/20
- 06/09: gnu: guile-netlink: Update to 1.1.2., guix-commits, 2023/05/20
- 08/09: gnu: cagebreak: Update to 2.1.2., guix-commits, 2023/05/20
- 09/09: gnu: Add labwc., guix-commits, 2023/05/20
- 03/09: services: agetty: 'stop' method does nothing when running is 'idle.,
guix-commits <=