Comment 1 for bug 506908

Revision history for this message
Dominik (domfi) wrote : Re: Upstart job for pcscd

If pcscd should handle PCMCIA-based SmartcardReader it is necessary that pcmcia is ready and has found all devices before pcscd is started. After Start of pcscd it needs some time to initialize itself (finding all smartcardreaders, etc.).

Other resources like GDM (Smartcard-based login) and NetworkManager (Smartcard-based VPN) should wait for pcscd to be ready (if it is installed)!

As a starting point I've written an upstart init script (attached). This script emits a signal after pcscd has been started and settled down (sleep 5). I know this is ugly, but as stated before simply starting pcscd -- and after that the NetworkManager/GDM -- can lead to a kind of "race condition".

I've also changed the upstart init script for NetworkManager and GDM to wait for the emited signal.