3 # pcscd PC/SC Smartcard daemon
5 # chkconfig: 2345 12 88
7 # description: The PC/SC smart card daemon is a resource manager for the \
8 # PC/SC lite and Musclecard frameworks. It coordinates \
9 # communications with smart card readers, smart cards, and \
10 # cryptographic tokens that are connected to the system.
13 # config: /etc/reader.conf.d
15 # Note! pcscd should be started after pcmcia, and shut down before it
16 # for smooth experience with PCMCIA readers.
20 # Source function library
21 . /etc/rc.d/init.d/functions
29 # Get service config - may override defaults
30 [ -f /etc/sysconfig/pcscd ] && . /etc/sysconfig/pcscd
32 pidfile=/var/run/pcscd/pcscd.pid
35 if [ -f /var/lock/subsys/pcscd ]; then
36 msg_already_running "PC/SC smart card daemon"
42 debug|info|error|critical)
47 msg_starting "PC/SC smart card daemon"
48 daemon /usr/sbin/pcscd $logopt $PCSCD_OPTIONS
50 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/pcscd
54 if [ ! -f /var/lock/subsys/pcscd ]; then
55 msg_not_running "PC/SC smart card daemon"
59 msg_stopping "PC/SC smart card daemon"
60 killproc --pidfile $pidfile pcscd
61 rm -f /var/lock/subsys/pcscd
65 if [ ! -f /var/lock/subsys/pcscd ]; then
66 msg_not_running "PC/SC smart card daemon"
76 # See how we were called.
92 # pcscd doesn't support reloading on HUP
96 status --pidfile $pidfile pcscd
100 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"