On 10/18/2011 10:03 AM, Ludovic Rousseau wrote:
> 2011/10/17 Kalev Lember <[email protected]>:
>> (According to Lennart, After=syslog.target is no longer necessary with
>> the version of systemd in Fedora 16, so we could probably drop this line.)
> 
> Do you know in which systemd version this has changed?
> Debian testing/wheezy has systemd 29 and unstable/sid has 37.

Not sure, but F16 also has systemd 37, which is certainly recent enough.
I imagine wheezy will soon inherit 37 it from sid, so no problem there.


On 10/18/2011 10:03 AM, Ludovic Rousseau wrote:
> 2011/10/17 Kalev Lember <[email protected]>:
>> I think in the long run we'll instead want to have
>> 'WantedBy=smartcard.target' and configure it for hardware activation.
>> But I haven't yet looked into how it works so I don't know the details.
> 
> Is the idea to start pcscd when a smart card reader is connected?
> Why do you want that?

pcscd can be slow to start like you write above. If pcscd is set to
start on-demand, first call to SCardEstablishContext() could possibly
delay client application for quite some time.

Now, if pcscd was started when the hardware is connected, we would be
able to be get rid of the initial delay, and also possibly completely
avoid starting pcscd when there's no supported hardware. (Not sure if
that would work in practice, with e.g. serial readers.)


>>> I also added the --auto-exit option to pcscd so that the daemon will
>>> exit when no more needed.
>>> The daemon is started when needed using the systemd socket activation
>>> method and will exit automatically when not needed.
>>
>> Not sure ... If you say you've tested it and systemd plays nice when the
>> daemon exits with exit code 0, I guess this could work. Might want to
>> bring this up on the systemd mailing list.
> 
> I changed pcscd to return 0 for this use case in revision 6044 [1]. It
> worked well. But I need to make more stress tests.

Automatically stopping pcscd after some time also means that client apps
will experience the same initial SCardEstablishContext() delay all over
every time pcscd has automatically exited.


-- 
Kalev
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to