Rev 4 | Blame | Compare with Previous | Last modification | View Log | RSS feed
#!/bin/sh## pcscd Starts the pcscd Daemon## chkconfig: 345 27 88# description: The PC/SC smart card daemon is a resource manager for the \# PC/SC lite and Musclecard frameworks. It coordinates \# communications with smart card readers, smart cards, and \# cryptographic tokens that are connected to the system.## processname: pcscd# config: /etc/reader.conf#### BEGIN INIT INFO# Provides: pcscd# Required-Start: $local_fs $remote_fs $syslog# Required-Stop: $local_fs $remote_fs $syslog# Should-Start: udev haldaemon openct# Should-Stop: udev haldaemon openct# Default-Start: 3 4 5# Default-Stop: 0 1 6# Short-Description: Daemon to access a smart card using PC/SC# Description: The PC/SC smart card daemon is a resource manager for the# PC/SC lite and Musclecard frameworks. It coordinates# communications with smart card readers, smart cards, and# cryptographic tokens that are connected to the system.### END INIT INFO## Note! pcscd should be started after pcmcia, and shut down before it# for smooth experience with PCMCIA readers.. /etc/init.d/functionsumask 077exec=/usr/sbin/pcscdprog=$(basename $exec)lockfile=/var/lock/subsys/$progsocket=/var/run/pcscd.commmapfile=/var/run/pcscd.pubPCSCD_OPTIONS=# Source configif [ -f /etc/sysconfig/pcscd ] ; then. /etc/sysconfig/pcscdfistart() {echo -n $"Starting PC/SC smart card daemon ($prog): "/usr/sbin/update-reader.conf && daemon $prog $PCSCD_OPTIONSretval=$?echo[ $retval -eq 0 ] && touch $lockfilereturn $retval}stop() {echo -n $"Stopping PC/SC smart card daemon ($prog): "killproc $progretval=$?echo[ $retval -eq 0 ] && rm -f $lockfilerm -f $socket $mapfilereturn $retval}restart() {stopstart}case "$1" instart|stop|restart)$1;;reload|force-reload)restart;;status)status $prog;;condrestart|try-restart)[ ! -f $lockfile ] || restart;;*)echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"exit 2esac