Browse Source

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.
gn-latest-20200428
Ludovic Courtès 1 year ago
parent
commit
b25ecfa2e0
No known key found for this signature in database GPG Key ID: 90B11993D9AEBB5
  1. 7
      gnu/services/mail.scm

7
gnu/services/mail.scm

@ -1544,9 +1544,10 @@ greyed out, instead of only later giving \"not selectable\" popup error.
(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…
Cancel
Save