mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
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:
parent
829c19142e
commit
effdc6c83e
1 changed files with 5 additions and 7 deletions
|
@ -685,13 +685,11 @@ (define (archive-name->username archive)
|
|||
|
||||
;; Finally, return the PID of the daemon process.
|
||||
daemon-pid))
|
||||
(stop
|
||||
#~(lambda (pid . args)
|
||||
(kill pid SIGKILL)
|
||||
;; Wait for the process to exit; this prevents overlapping
|
||||
;; processes when issuing 'herd restart'.
|
||||
(waitpid pid)
|
||||
#f))))))))
|
||||
;; XXX: jamid takes some time to terminate, and GNU Shepherd
|
||||
;; doesn't block when calling waitpid (see:
|
||||
;; https://issues.guix.gnu.org/57922). Using SIGKILL instead
|
||||
;; of SIGTERM works around that.
|
||||
(stop #~(make-kill-destructor SIGKILL))))))))
|
||||
|
||||
(define jami-service-type
|
||||
(service-type
|
||||
|
|
Loading…
Reference in a new issue