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
31 # Get service config - may override defaults
32 [ -f /etc/sysconfig/pcscd ] && . /etc/sysconfig/pcscd
34 pidfile=/var/run/pcscd/pcscd.pid
37 if [ -f /var/lock/subsys/pcscd ]; then
38 msg_already_running "PC/SC smart card daemon"
44 debug|info|error|critical)
49 msg_starting "PC/SC smart card daemon"
50 daemon /usr/sbin/pcscd $logopt $PCSCD_OPTIONS
52 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/pcscd
56 if [ ! -f /var/lock/subsys/pcscd ]; then
57 msg_not_running "PC/SC smart card daemon"
61 msg_stopping "PC/SC smart card daemon"
62 killproc --pidfile $pidfile pcscd
63 rm -f /var/lock/subsys/pcscd
67 if [ ! -f /var/lock/subsys/pcscd ]; then
68 msg_not_running "PC/SC smart card daemon"
78 # See how we were called.
94 # pcscd doesn't support reloading on HUP
98 status --pidfile $pidfile pcscd
102 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"