| 1 |
#!/sbin/runscript
|
| 2 |
# Copyright 1999-2011 Gentoo Foundation
|
| 3 |
# Distributed under the terms of the GNU General Public License v2
|
| 4 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcsc-lite/files/pcscd-init.4,v 1.2 2011/08/01 08:49:05 flameeyes Exp $
|
| 5 |
|
| 6 |
depend() {
|
| 7 |
need localmount
|
| 8 |
|
| 9 |
after udev openct
|
| 10 |
}
|
| 11 |
|
| 12 |
start() {
|
| 13 |
[ -d /var/run/pcscd ] || mkdir -p /var/run/pcscd
|
| 14 |
|
| 15 |
chown pcscd:pcscd /var/run/pcscd
|
| 16 |
chmod 0755 /var/run/pcscd
|
| 17 |
|
| 18 |
ebegin "Starting pcscd"
|
| 19 |
start-stop-daemon --start \
|
| 20 |
--exec /usr/sbin/pcscd \
|
| 21 |
--pidfile /var/run/pcscd/pcscd.pid \
|
| 22 |
--user pcscd:pcscd \
|
| 23 |
-- ${EXTRA_OPTS}
|
| 24 |
eend $?
|
| 25 |
}
|
| 26 |
|
| 27 |
stop() {
|
| 28 |
ebegin "Stopping pcscd"
|
| 29 |
start-stop-daemon --stop \
|
| 30 |
--exec /usr/sbin/pcscd \
|
| 31 |
--pidfile /var/run/pcscd/pcscd.pid
|
| 32 |
eend $?
|
| 33 |
}
|