mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-25 18:41:54 +02: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user