mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-24 11:39:46 -05:00
services: agetty: 'stop' method does nothing when running is 'idle.
This is a followup to 57e731c358
.
* gnu/services/base.scm (agetty-shepherd-service): Change 'stop' method
to return #f immediately when the running value is 'idle.
This commit is contained in:
parent
f52020ea99
commit
d99a4c4cb3
1 changed files with 5 additions and 1 deletions
|
@ -1187,7 +1187,11 @@ (define (agetty-shepherd-service config)
|
|||
'#$(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)
|
||||
|
|
Loading…
Reference in a new issue