[Pcsclite-cvs-commit] PCSC/etc pcscd.init.in,NONE,1.1 .cvsignore,1.2,1.3 Makefile.am,1.5,1.6 pcscd.startup,1.5,NONE
rousseau@haydn.debian.org
rousseau@haydn.debian.org
Update of /cvsroot/pcsclite/PCSC/etc
In directory haydn:/tmp/cvs-serv13248
Modified Files:
.cvsignore Makefile.am
Added Files:
pcscd.init.in
Removed Files:
pcscd.startup
Log Message:
pcscd.startup is replaced by pcscd.init generated from pcscd.init.in
--- NEW FILE: pcscd.init.in ---
#!/bin/sh
#
# pcscd Starts the pcscd Daemon
#
# chkconfig: 2345 25 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: @confdir@/reader.conf
#
# Note! pcscd should be started after pcmcia, and shut down before it
# for smooth experience with PCMCIA readers.
. @sysconfdir_exp@/init.d/functions
umask 077
exec=@sbindir_exp@/pcscd
prog=$(basename $exec)
lockfile=@localstatedir_exp@/lock/subsys/$prog
PCSCD_OPTIONS=
# Source config
if [ -f @sysconfdir_exp@/sysconfig/pscsd ] ; then
. @sysconfdir_exp@/sysconfig/pcscd
fi
start() {
echo -n $"Starting PC/SC smart card daemon ($prog): "
daemon $prog $PCSCD_OPTIONS
retval=$?
echo
[ $retval -eq 0 ] && touch $lockfile
return $retval
}
stop() {
echo -n $"Stopping PC/SC smart card daemon ($prog): "
killproc $prog
retval=$?
echo
[ $retval -eq 0 ] && rm -f $lockfile
return $retval
}
restart() {
stop
start
}
case "$1" in
start|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 2
esac
Index: .cvsignore
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/etc/.cvsignore,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- .cvsignore 30 Mar 2004 12:40:59 -0000 1.2
+++ .cvsignore 10 Aug 2004 19:47:23 -0000 1.3
@@ -1,3 +1,4 @@
Makefile
Makefile.in
+pcscd.init
reader.conf
Index: Makefile.am
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/etc/Makefile.am,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- Makefile.am 12 May 2004 12:28:13 -0000 1.5
+++ Makefile.am 10 Aug 2004 19:47:23 -0000 1.6
@@ -2,4 +2,4 @@
sysconf_DATA = reader.conf
-EXTRA_DIST = StartupParameters.plist SmartcardServices pcscd.startup
+EXTRA_DIST = StartupParameters.plist SmartcardServices pcscd.init
--- pcscd.startup DELETED ---