Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion psi/providers/nitrokeyhsm/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,12 @@ def preflight(config: ConfigOption = None) -> None:

RUN mkdir -p /run/pcscd && chmod 777 /run/pcscd

CMD ["/usr/sbin/pcscd", "-f", "--disable-polkit"]
# pcscd refuses to start if pcscd.comm/pcscd.pid already exist (it assumes
# another pcscd is running). When the socket directory is a persistent
# named volume, those files survive reboots and stop the daemon coming
# back. Clear them before starting; exec so SIGTERM still reaches pcscd.
CMD ["/bin/sh", "-c", \
"rm -f /run/pcscd/pcscd.comm /run/pcscd/pcscd.pid && exec /usr/sbin/pcscd -f --disable-polkit"]
"""

_PCSCD_QUADLET = """\
Expand Down
Loading