services: jami-service-type: Streamline stop slot.

* gnu/services/telephony.scm (jami-shepherd-services)
[stop]: Use make-kill-destructor with SIGKILL.  Add comment.
This commit is contained in:
Maxim Cournoyer 2022-09-23 23:45:27 -04:00
parent 829c19142e
commit effdc6c83e
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -685,13 +685,11 @@ (define (archive-name->username archive)
;; Finally, return the PID of the daemon process. ;; Finally, return the PID of the daemon process.
daemon-pid)) daemon-pid))
(stop ;; XXX: jamid takes some time to terminate, and GNU Shepherd
#~(lambda (pid . args) ;; doesn't block when calling waitpid (see:
(kill pid SIGKILL) ;; https://issues.guix.gnu.org/57922). Using SIGKILL instead
;; Wait for the process to exit; this prevents overlapping ;; of SIGTERM works around that.
;; processes when issuing 'herd restart'. (stop #~(make-kill-destructor SIGKILL))))))))
(waitpid pid)
#f))))))))
(define jami-service-type (define jami-service-type
(service-type (service-type