3
# pcscd Starts the pcscd Daemon
5
# chkconfig: 2345 25 88
6
# description: The PC/SC smart card daemon is a resource manager for the \
7
# PC/SC lite and Musclecard frameworks. It coordinates \
8
# communications with smart card readers, smart cards, and \
9
# cryptographic tokens that are connected to the system.
12
# config: @confdir@/reader.conf
14
# Note! pcscd should be started after pcmcia, and shut down before it
15
# for smooth experience with PCMCIA readers.
17
. @sysconfdir_exp@/init.d/functions
21
exec=@sbindir_exp@/pcscd
22
prog=$(basename $exec)
23
lockfile=@localstatedir_exp@/lock/subsys/$prog
27
if [ -f @sysconfdir_exp@/sysconfig/pscsd ] ; then
28
. @sysconfdir_exp@/sysconfig/pcscd
32
echo -n $"Starting PC/SC smart card daemon ($prog): "
33
@sbindir_exp@/update-reader.conf && daemon $prog $PCSCD_OPTIONS
36
[ $retval -eq 0 ] && touch $lockfile
40
echo -n $"Stopping PC/SC smart card daemon ($prog): "
44
[ $retval -eq 0 ] && rm -f $lockfile
63
condrestart|try-restart)
64
[ ! -f $lockfile ] || restart
67
echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"