Magellan Linux

Contents of /trunk/pcsc-lite/pcscd.rc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1453 - (show annotations) (download)
Thu Jul 28 09:32:09 2011 UTC (12 years, 9 months ago) by niro
File size: 877 byte(s)
-use rc_print() functions
1 #!/bin/bash
2 # $Header: /root/magellan-cvs/src/pcsc-lite/pcscd.rc,v 1.1 2009-06-12 20:39:44 niro Exp $
3
4 #%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k
5 #%start: 80
6 #%stop: 20
7
8 #deps
9 #%needs:
10 #%before:
11 #%after:
12
13 source /etc/conf.d/rc
14 source $rc_functions
15
16 # get config
17 source /etc/conf.d/pcscd
18
19 case "$1" in
20 start)
21 rc_print "Starting pcscd ..."
22
23 # pcscd won't start if these exist
24 rm -f /var/run/pcscd.{comm,pub}
25
26 /usr/sbin/pcscd ${PCSCD_OPTS}
27 evaluate_retval
28
29 update_svcstatus $1
30 splash svc_started "$(basename $0)" 0
31 ;;
32
33 stop)
34 rc_print "Stopping pcscd ..."
35 start-stop-daemon --stop --quiet --exec /usr/sbin/pcscd
36 evaluate_retval
37
38 update_svcstatus $1
39 splash svc_stopped "$(basename $0)" 0
40 ;;
41
42 restart)
43 $0 stop
44 sleep 1
45 $0 start
46 ;;
47
48 status)
49 statusproc /usr/sbin/pcscd
50 ;;
51
52 *)
53 rc_echo "Usage: $0 {start|stop|restart|status}"
54 exit 1
55 ;;
56 esac