Package: pcscd Version: 1.8.11-3 Severity: normal Hi,
it seems that pcscd doens't work with systemd. I changed the file /lib/systemd/system/pcscd.service to enable debugging to the logfile and now I get this when starting: Jun 16 11:17:44 wspk systemd[1]: Starting PC/SC Smart Card Daemon... Jun 16 11:17:44 wspk systemd[1]: Started PC/SC Smart Card Daemon. Jun 16 11:17:44 wspk pcscd: debuglog.c:295:DebugLogSetLevel() debug level=debug Jun 16 11:17:44 wspk pcscd: pcscdaemon.c:375:main() Started by systemd Jun 16 11:17:44 wspk pcscd: utils.c:87:GetDaemonPid() Can't open /var/run/pcscd/pcscd.pid: No such file or directory Jun 16 11:17:44 wspk pcscd: configfile.l:286:DBGetReaderListDir() Parsing conf directory: /etc/reader.conf.d Jun 16 11:17:44 wspk pcscd: configfile.l:298:DBGetReaderListDir() Skipping non regular file: . Jun 16 11:17:44 wspk pcscd: configfile.l:298:DBGetReaderListDir() Skipping non regular file: .. Jun 16 11:17:44 wspk pcscd: configfile.l:339:DBGetReaderList() Parsing conf file: /etc/reader.conf.d/0comments Jun 16 11:17:44 wspk pcscd: configfile.l:339:DBGetReaderList() Parsing conf file: /etc/reader.conf.d/libccidtwin Jun 16 11:17:44 wspk pcscd: pcscdaemon.c:571:main() pcsc-lite 1.8.11 daemon ready. Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/003/001 Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/004/001 Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/005/001 Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/005/001 Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x0C4B, PID: 0x0400, path: /dev/bus/usb/005/005 Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x0C4B, PID: 0x0400, path: /dev/bus/usb/005/005 Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:347:HPAddDevice() Adding USB device: REINER SCT cyberJack ecom_a Jun 16 11:17:44 wspk pcscd: readerfactory.c:1015:RFInitializeReader() Attempting startup of REINER SCT cyberJack ecom_a (3547493553) 00 00 using /usr/lib/pcsc/drivers/libifd-cyberjack.bundle/Contents/Linux/libifd-cyberjack.so Jun 16 11:17:44 wspk pcscd: readerfactory.c:900:RFBindFunctions() Loading IFD Handler 3.0 Jun 16 11:17:44 wspk pcscd: readerfactory.c:353:RFAddReader() Using the pcscd polling thread Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001 Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001 Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x0424, PID: 0x2514, path: /dev/bus/usb/001/026 Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001 Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x0424, PID: 0x2514, path: /dev/bus/usb/001/025 Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001 Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x2040, PID: 0x7070, path: /dev/bus/usb/001/004 Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001 Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x046D, PID: 0x0990, path: /dev/bus/usb/001/006 Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x046D, PID: 0x0990, path: /dev/bus/usb/001/006 Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x046D, PID: 0x0990, path: /dev/bus/usb/001/006 Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x046D, PID: 0x0990, path: /dev/bus/usb/001/006 Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/006/001 Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/006/001 Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x046D, PID: 0xC050, path: /dev/bus/usb/006/002 Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/007/001 Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/007/001 Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x046A, PID: 0x0011, path: /dev/bus/usb/007/002 Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/008/001 Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/002/001 Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/002/001 Jun 16 11:17:44 wspk pcscd: hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x05E3, PID: 0x0723, path: /dev/bus/usb/002/004 Jun 16 11:17:44 wspk pcscd: pcscdaemon.c:752:signal_trap() Received signal: 15 Jun 16 11:17:44 wspk pcscd: pcscdaemon.c:758:signal_trap() Direct suicide Jun 16 11:17:44 wspk pcscd: pcscdaemon.c:696:at_exit() cleaning /var/run/pcscd Jun 16 11:17:44 wspk pcscd: pcscdaemon.c:710:at_exit() write() failed: Connection refused Trying to scan fails: pcsc_scan PC/SC device scanner V 1.4.22 (c) 2001-2011, Ludovic Rousseau <ludovic.rouss...@free.fr> Compiled with PC/SC lite version: 1.8.10 SCardEstablishContext: Service not available. Running from the cmd line it works: root@wspk:/etc/systemd/system/sockets.target.wants# pcscd -d -f 00000000 pcscdaemon.c:266:main() pcscd set to foreground with debug send to stdout 00000064 configfile.l:286:DBGetReaderListDir() Parsing conf directory: /etc/reader.conf.d 00000020 configfile.l:298:DBGetReaderListDir() Skipping non regular file: . 00000008 configfile.l:298:DBGetReaderListDir() Skipping non regular file: .. 00000009 configfile.l:339:DBGetReaderList() Parsing conf file: /etc/reader.conf.d/0comments 00000043 configfile.l:339:DBGetReaderList() Parsing conf file: /etc/reader.conf.d/libccidtwin 00000032 pcscdaemon.c:571:main() pcsc-lite 1.8.11 daemon ready. 00001429 hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/003/001 00000109 hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/004/001 00000110 hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/005/001 00000084 hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/005/001 00000091 hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x0C4B, PID: 0x0400, path: /dev/bus/usb/005/005 00000030 hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x0C4B, PID: 0x0400, path: /dev/bus/usb/005/005 00000012 hotplug_libudev.c:347:HPAddDevice() Adding USB device: REINER SCT cyberJack ecom_a 00000041 readerfactory.c:1015:RFInitializeReader() Attempting startup of REINER SCT cyberJack ecom_a (3547493553) 00 00 using /usr/lib/pcsc/drivers/libifd-cyberjack.bundle/Contents/Linux/libifd-cyberjack.so CYBERJACK: Started 00000795 readerfactory.c:900:RFBindFunctions() Loading IFD Handler 3.0 00047537 readerfactory.c:353:RFAddReader() Using the pcscd polling thread 00002120 hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001 00000059 hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001 00000057 hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x0424, PID: 0x2514, path: /dev/bus/usb/001/026 00000052 hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001 00000055 hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x0424, PID: 0x2514, path: /dev/bus/usb/001/025 00000051 hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001 00000055 hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x2040, PID: 0x7070, path: /dev/bus/usb/001/004 00000050 hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001 00000054 hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x046D, PID: 0x0990, path: /dev/bus/usb/001/006 00000052 hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x046D, PID: 0x0990, path: /dev/bus/usb/001/006 00000051 hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x046D, PID: 0x0990, path: /dev/bus/usb/001/006 00000053 hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x046D, PID: 0x0990, path: /dev/bus/usb/001/006 00000071 hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/006/001 00000054 hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/006/001 00000070 hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x046D, PID: 0xC050, path: /dev/bus/usb/006/002 00000071 hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/007/001 00000084 hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/007/001 00000054 hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x046A, PID: 0x0011, path: /dev/bus/usb/007/002 00000068 hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/008/001 00000070 hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/002/001 00000053 hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/002/001 00000053 hotplug_libudev.c:295:get_driver() Looking for a driver for VID: 0x05E3, PID: 0x0723, path: /dev/bus/usb/002/004 00000028 readerfactory.c:1356:RFWaitForReaderInit() Waiting init for reader: REINER SCT cyberJack ecom_a (3547493553) 00 00 pkolmann@wspk:~$ pcsc_scan PC/SC device scanner V 1.4.22 (c) 2001-2011, Ludovic Rousseau <ludovic.rouss...@free.fr> Compiled with PC/SC lite version: 1.8.10 Using reader plug'n play mechanism Scanning present readers... 0: REINER SCT cyberJack ecom_a (3547493553) 00 00 Mon Jun 16 11:22:16 2014 Reader 0: REINER SCT cyberJack ecom_a (3547493553) 00 00 Card state: Card removed, Debug log: 16306221 winscard_msg_srv.c:256:ProcessEventsServer() Common channel packet arrival 00000021 winscard_msg_srv.c:268:ProcessEventsServer() ProcessCommonChannelRequest detects: 15 00000005 pcscdaemon.c:137:SVCServiceRunLoop() A new context thread creation is requested: 15 00000105 winscard_svc.c:334:ContextThread() Authorized PC/SC client 00000014 winscard_svc.c:338:ContextThread() Thread is started: dwClientID=15, threadContext @0x8bef378 00000014 winscard_svc.c:356:ContextThread() Received command: CMD_VERSION from client 15 00000013 winscard_svc.c:368:ContextThread() Client is protocol version 4:3 00000008 winscard_svc.c:388:ContextThread() CMD_VERSION rv=0x0 for client 15 00000157 winscard_svc.c:356:ContextThread() Received command: ESTABLISH_CONTEXT from client 15 00000023 winscard.c:219:SCardEstablishContext() Establishing Context: 0x4B226D97 00000009 winscard_svc.c:449:ContextThread() ESTABLISH_CONTEXT rv=0x0 for client 15 00000163 winscard_svc.c:356:ContextThread() Received command: CMD_GET_READERS_STATE from client 15 00000157 winscard_svc.c:356:ContextThread() Received command: CMD_WAIT_READER_STATE_CHANGE from client 15 00000069 winscard_svc.c:356:ContextThread() Received command: CMD_STOP_WAITING_READER_STATE_CHANGE from client 15 00000016 winscard_svc.c:430:ContextThread() CMD_STOP_WAITING_READER_STATE_CHANGE rv=0x0 for client 15 00000129 winscard_svc.c:356:ContextThread() Received command: CMD_GET_READERS_STATE from client 15 00000137 winscard_svc.c:356:ContextThread() Received command: CMD_GET_READERS_STATE from client 15 00000081 winscard_svc.c:356:ContextThread() Received command: CMD_GET_READERS_STATE from client 15 00000052 winscard_svc.c:356:ContextThread() Received command: CMD_GET_READERS_STATE from client 15 00000145 winscard_svc.c:356:ContextThread() Received command: CMD_GET_READERS_STATE from client 15 00000100 winscard_svc.c:356:ContextThread() Received command: CMD_WAIT_READER_STATE_CHANGE from client 15 Do you have any idea, why it doesn't work while started via systemd? thanks Philipp -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 3.14-1-686-pae (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages pcscd depends on: ii init-system-helpers 1.19 ii libc6 2.19-1 ii libccid [pcsc-ifd-handler] 1.4.17-1 ii libifd-cyberjack6 [pcsc-ifd-handler] 3.99.5final.sp05-1 ii libpcsclite1 1.8.11-3 ii libudev1 204-10 ii lsb-base 4.1+Debian13 pcscd recommends no packages. Versions of packages pcscd suggests: ii systemd 204-10 -- no debconf information -- debsums errors found: debsums: changed file /lib/systemd/system/pcscd.service (from pcscd package) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org