diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-09-28 23:37:16 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-09-28 23:37:16 +0000 |
commit | 1630c4a4067c5801dd30dfe773ac2ee4a1a24972 (patch) | |
tree | 4be71729f1bfb2cdbd7c5e196d60c6c89774de06 /sys-apps/pcsc-lite/files | |
parent | Marking rr-0.10.11 ~ppc for bug 322053 (diff) | |
download | gentoo-2-1630c4a4067c5801dd30dfe773ac2ee4a1a24972.tar.gz gentoo-2-1630c4a4067c5801dd30dfe773ac2ee4a1a24972.tar.bz2 gentoo-2-1630c4a4067c5801dd30dfe773ac2ee4a1a24972.zip |
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.
(Portage version: 2.2_rc88/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/pcsc-lite/files')
-rw-r--r-- | sys-apps/pcsc-lite/files/pcscd-init.2 | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sys-apps/pcsc-lite/files/pcscd-init.2 b/sys-apps/pcsc-lite/files/pcscd-init.2 new file mode 100644 index 000000000000..58d4a1969347 --- /dev/null +++ b/sys-apps/pcsc-lite/files/pcscd-init.2 @@ -0,0 +1,29 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcsc-lite/files/pcscd-init.2,v 1.1 2010/09/28 23:37:16 flameeyes Exp $ + +depend() { + # ensure there is at least one dependency or if the following + # is removed we're stuck with a broken init + need localmount + + need hald +} + +start() { + ebegin "Starting pcscd" + start-stop-daemon --start \ + --exec /usr/sbin/pcscd \ + --pidfile /var/run/pcscd/pcscd.pid \ + -- ${PCSCD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping pcscd" + start-stop-daemon --stop \ + --exec /usr/sbin/pcscd \ + --pidfile /var/run/pcscd/pcscd.pid + eend $? +} |