#!/bin/sh # # pcscd Starts the pcscd Daemon # # # chkconfig: 2345 12 88 # description: PC/SC Daemon . /etc/init.d/functions [ -f /usr/sbin/pcscd ] || exit 0 case "$1" in start) echo -n "Starting smart card daemon: " daemon pcscd RETVAL=$? echo [ $RETVAL -eq 0 ] && touch /var/lock/subsys/pcscd ;; stop) echo -n "Shutting down smart card daemon: " killproc pcscd RETVAL=$? echo [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/pcscd ;; status) status pcscd ;; restart|reload) $0 stop $0 start ;; condrestart) [ -f /var/lock/subsys/pcscd ] && $0 restart || : ;; *) echo "Usage: pcscd {start|stop|status|restart|condrestart}" exit 1 esac exit $?