summaryrefslogtreecommitdiff
path: root/legacy/pcsc-lite/pcscd.initd
blob: 7c580253a146d1ce64dc294e6d6736abb4fa6143 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/sbin/openrc-run
# Copyright 1999-2014 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.7,v 1.1 2014/02/14 23:11:54 flameeyes Exp $

name="PC/SC Daemon"

pidfile=/run/pcscd/pcscd.pid

command=/usr/sbin/pcscd
command_args="${EXTRA_OPTS}"

start_stop_daemon_args="--user pcscd:pcscd"

depend() {
	need localmount
	after udev openct dbus
	use logger
}

start_pre() {
	checkpath -d -m 0755 -o pcscd:pcscd /run/pcscd
}