Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366331 - sys-apps/pcsc-lite - after unclean shutdown pcscd fails to start due to leftover /var/run/pcscd/pcscd.comm
Summary: sys-apps/pcsc-lite - after unclean shutdown pcscd fails to start due to lefto...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal minor with 1 vote (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-07 11:10 UTC by Erik Quaeghebeur
Modified: 2013-01-12 19:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Quaeghebeur 2011-05-07 11:10:30 UTC
The pcscd service fails to load after an unclean shutdown due to a leftover /var/run/pcscd/pcscd.comm
Deleting that file fixes the problem

Reproducible: Always

Steps to Reproduce:
1. start pcscd
2. reboot (uncleanly)
3. try to start pcscd again
Actual Results:  
pcscd does not start:

# /usr/sbin/pcscd -f
utils.c:53:GetDaemonPid() Can't open /var/run/pcscd/pcscd.pid: No such file or directory
pcscdaemon.c:367:main() file /var/run/pcscd/pcscd.comm already exists.
pcscdaemon.c:369:main() Maybe another pcscd is running?
pcscdaemon.c:371:main() I can't read process pid from /var/run/pcscd/pcscd.pid
pcscdaemon.c:372:main() Remove /var/run/pcscd/pcscd.comm
pcscdaemon.c:374:main() if pcscd is not running to clear this message.

Expected Results:  
pcscd should start

Possible solution: The startup script could delete this file in case it can verify (based on pid file?) no other instance of pcscd is actually running
Comment 1 Alon Bar-Lev (RETIRED) gentoo-dev 2013-01-12 19:17:47 UTC
I think that in pcsc-lite-1.8 this is resolved, I do not see this behaviour in code.
Please reopen if not.
Thanks!