3
# pcscd Starts the pcscd Daemon
6
# chkconfig: 2345 12 88
7
# description: PCSC Smart Card Daemon
10
# config: /etc/reader.conf
12
. /etc/init.d/functions
15
if [ -f /etc/sysconfig/pscsd ] ; then
16
. /etc/sysconfig/pcscd
21
[ -f /usr/local/sbin/pcscd ] || exit 0
26
PATH=/sbin:/bin:/usr/local/sbin:/usr/bin:/usr/sbin
27
LD_LIBRARY_PATH=/usr/lib:/usr/local/lib
32
echo -n $"Starting smart card daemon: "
33
daemon pcscd $PCSCD_OPTIONS
36
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/pcscd
40
echo -n $"Shutting down smart card daemon: "
44
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/pcscd
69
[ -f /var/lock/subsys/pcscd ] && restart || :
72
echo $"Usage: $0 {start|stop|status|restart|condrestart}"