mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
services: pcscd: Fix daemon signal handling.
"pcscd" wouldn't handle SIGTERM as it inherit ignoring this signal (and others) from its parent shepherd; fork+exec-command restore signal handling. Fixes <https://issues.guix.gnu.org/45202>. * gnu/services/security-token.scm (pcscd)[start]: Use fork+exec-command to start "pcscd".
This commit is contained in:
parent
9c1720591c
commit
e789ce538e
1 changed files with 4 additions and 2 deletions
|
@ -61,8 +61,10 @@ (define pcscd-shepherd-service
|
|||
(let ((socket "/run/pcscd/pcscd.comm"))
|
||||
(when (file-exists? socket)
|
||||
(delete-file socket)))
|
||||
(invoke #$(file-append pcsc-lite "/sbin/pcscd"))
|
||||
(call-with-input-file "/run/pcscd/pcscd.pid" read)))
|
||||
(fork+exec-command
|
||||
(list #$(file-append pcsc-lite "/sbin/pcscd")
|
||||
"--foreground")
|
||||
#:log-file "/var/log/pcscd.log")))
|
||||
(stop #~(make-kill-destructor)))))))
|
||||
|
||||
(define pcscd-activation
|
||||
|
|
Loading…
Reference in a new issue