18 |
|
|
19 |
case "$1" in |
case "$1" in |
20 |
start) |
start) |
21 |
echo -e ${COLOREDSTAR}"Starting pcscd ..." |
rc_print "Starting pcscd ..." |
22 |
|
|
23 |
# pcscd won't start if these exist |
# pcscd won't start if these exist |
24 |
rm -f /var/run/pcscd.{comm,pub} |
rm -f /var/run/pcscd.{comm,pub} |
31 |
;; |
;; |
32 |
|
|
33 |
stop) |
stop) |
34 |
echo -e ${COLOREDSTAR}"Stopping pcscd ..." |
rc_print "Stopping pcscd ..." |
35 |
start-stop-daemon --stop --quiet --exec /usr/sbin/pcscd |
start-stop-daemon --stop --quiet --exec /usr/sbin/pcscd |
36 |
evaluate_retval |
evaluate_retval |
37 |
|
|
50 |
;; |
;; |
51 |
|
|
52 |
*) |
*) |
53 |
echo "Usage: $0 {start|stop|restart|status}" |
rc_echo "Usage: $0 {start|stop|restart|status}" |
54 |
exit 1 |
exit 1 |
55 |
;; |
;; |
56 |
esac |
esac |