mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
services: dovecot: 'stop' method returns #f upon success.
* gnu/services/mail.scm (dovecot-shepherd-service)[stop]: Use 'invoke' instead of 'make-forkexec-constructor'. Previously, the 'stop' method would return the PID of the "dovecot stop" process, which would be interpreted as a failure to stop the service.
This commit is contained in:
parent
7d903d2ff7
commit
b25ecfa2e0
1 changed files with 4 additions and 3 deletions
|
@ -1544,9 +1544,10 @@ (define (dovecot-shepherd-service config)
|
|||
(start #~(make-forkexec-constructor
|
||||
(list (string-append #$dovecot "/sbin/dovecot")
|
||||
"-F")))
|
||||
(stop #~(make-forkexec-constructor
|
||||
(list (string-append #$dovecot "/sbin/dovecot")
|
||||
"stop")))))))
|
||||
(stop #~(lambda _
|
||||
(invoke #$(file-append dovecot "/sbin/dovecot")
|
||||
"stop")
|
||||
#f))))))
|
||||
|
||||
(define %dovecot-pam-services
|
||||
(list (unix-pam-service "dovecot")))
|
||||
|
|
Loading…
Reference in a new issue