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
28 # See how we were called.
31 # Check if the service is already running?
32 if [ ! -f /var/lock/subsys/pcscd ]; then
33 # show "Starting %s service" pcscd
37 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/pcscd
39 # show "%s service is already running." pcscd
40 msg_already_running pcscd
45 # show "Stopping %s service" pcscd
46 if [ -f /var/lock/subsys/pcscd ]; then
49 rm -f /var/lock/subsys/pcscd
51 # show "%s service is not running." pcscd
56 # pcscd doesn't support reloading on HUP
66 # show "Usage: %s {start|stop|restart|force-reload|status}"
67 msg_usage "$0 {start|stop|restart|force-reload|status}"
73 # This must be last line !
74 # vi:syntax=sh:tw=78:ts=8:sw=4