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
18 # Source function library
19 . /etc/rc.d/init.d/functions
26 # Get service config - may override defaults
27 [ -f /etc/sysconfig/pcscd ] && . /etc/sysconfig/pcscd
29 if is_yes "${LOGGING}"; then
36 # See how we were called.
39 # Check if the service is already running?
40 if [ ! -f /var/lock/subsys/pcscd ]; then
42 /usr/sbin/update-reader.conf && daemon pcscd $LOGOPT
44 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/pcscd
46 msg_already_running pcscd
51 if [ -f /var/lock/subsys/pcscd ]; then
54 rm -f /var/lock/subsys/pcscd
60 # pcscd doesn't support reloading on HUP
70 msg_usage "$0 {start|stop|restart|force-reload|status}"
76 # This must be last line !
77 # vi:syntax=sh:tw=78:ts=8:sw=4