Package: pcscd Version: 1.8.13-1 Severity: important Tags: upstream systemd, in its infinite wisdom, listens to /var/run/pcscd/pcscd.comm for connections and starts up the pcscd service on-demand if any connections come in. However, when pcscd exits, it "cleans" the /var/run/pcscd folder, thus removing the pcscd.comm file. Examination of systemctl list-sockets shows it is supposedly listening on that socket, but with the file descriptor removed by the daemon (when it auto-exits, or when the daemon was started manually and then terminated), systemd will never start up the program again because clients cannot connect to a nonexistant FD. Additionally, when the service is started manually via init.d scripts, the socket is not auto- created as it is when it is run directly via the command line.
This is probably a bug both in pcscd and systemd, the former for not checking if the socket FD exists upon startup from systemd, and the latter for not doing the same upon shutdown of the daemon or at least semi-periodically. The only method I've found to re-create this socket FD is to restart the system; obviously not an acceptable workaround. -- System Information: Debian Release: 8.2 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages pcscd depends on: ii init-system-helpers 1.22 ii libc6 2.19-18+deb8u1 ii libgcr410 [pcsc-ifd-handler] 2.4.0-9.2 ii libpcsclite1 1.8.13-1 ii libudev1 215-17+deb8u2 ii lsb-base 4.1+Debian13+nmu1 pcscd recommends no packages. Versions of packages pcscd suggests: ii systemd 215-17+deb8u2 -- no debconf information