1 |
flameeyes 10/09/28 23:37:16 |
2 |
|
3 |
Added: pcscd-init.2 |
4 |
Log: |
5 |
Version bump; the new version has an improved init script that takes less time to start (no process creation for depend calculation), and properly uses s-s-d to respect system limits; also upstream moved to libusb-1 rather than the previous libusb-0. |
6 |
|
7 |
(Portage version: 2.2_rc88/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 sys-apps/pcsc-lite/files/pcscd-init.2 |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pcsc-lite/files/pcscd-init.2?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pcsc-lite/files/pcscd-init.2?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: pcscd-init.2 |
16 |
=================================================================== |
17 |
#!/sbin/runscript |
18 |
# Copyright 1999-2010 Gentoo Foundation |
19 |
# Distributed under the terms of the GNU General Public License v2 |
20 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcsc-lite/files/pcscd-init.2,v 1.1 2010/09/28 23:37:16 flameeyes Exp $ |
21 |
|
22 |
depend() { |
23 |
# ensure there is at least one dependency or if the following |
24 |
# is removed we're stuck with a broken init |
25 |
need localmount |
26 |
|
27 |
need hald |
28 |
} |
29 |
|
30 |
start() { |
31 |
ebegin "Starting pcscd" |
32 |
start-stop-daemon --start \ |
33 |
--exec /usr/sbin/pcscd \ |
34 |
--pidfile /var/run/pcscd/pcscd.pid \ |
35 |
-- ${PCSCD_OPTS} |
36 |
eend $? |
37 |
} |
38 |
|
39 |
stop() { |
40 |
ebegin "Stopping pcscd" |
41 |
start-stop-daemon --stop \ |
42 |
--exec /usr/sbin/pcscd \ |
43 |
--pidfile /var/run/pcscd/pcscd.pid |
44 |
eend $? |
45 |
} |