Annotation of /trunk/pcsc-lite/pcscd.rc
Parent Directory | Revision Log
Revision 848 -
(hide annotations)
(download)
Fri Jun 12 20:39:44 2009 UTC (15 years, 3 months ago) by niro
File size: 900 byte(s)
Fri Jun 12 20:39:44 2009 UTC (15 years, 3 months ago) by niro
File size: 900 byte(s)
-files for pcsc-lite
1 | niro | 848 | #!/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 | echo -e ${COLOREDSTAR}"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 | echo -e ${COLOREDSTAR}"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 | echo "Usage: $0 {start|stop|restart|status}" | ||
54 | exit 1 | ||
55 | ;; | ||
56 | esac |