3 # pcscd PC/SC Smartcard daemon
5 # chkconfig: 2345 12 88
7 # description: daemon for pcsc-lite and musclecard framework
12 # Source function library
13 . /etc/rc.d/init.d/functions
18 # Get service config - may override defaults
19 [ -f /etc/sysconfig/pcscd ] && . /etc/sysconfig/pcscd
21 if is_yes "${LOGGING}"; then
27 # See how we were called.
30 # Check if the service is already running?
31 if [ ! -f /var/lock/subsys/pcscd ]; then
32 # show "Starting %s service" pcscd
36 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/pcscd
38 # show "%s service is already running." pcscd
39 msg_already_running pcscd
45 # show "Stopping %s service" pcscd
46 if [ -f /var/lock/subsys/pcscd ]; then
50 rm -f /var/lock/subsys/pcscd
52 # show "%s service is not running." pcscd
57 restart|reload|force-reload)
58 # pcscd doesn't support reloading on HUP
67 # show "Usage: %s {start|stop|status|restart|reload|force-reload}" $0
68 msg_usage "$0 {start|stop|status|restart|reload|force-reload}"
74 # This must be last line !
75 # vi:syntax=sh:tw=78:ts=8:sw=4