diff options
Diffstat (limited to 'main/pcsc-lite/pcscd.initd')
-rw-r--r-- | main/pcsc-lite/pcscd.initd | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/main/pcsc-lite/pcscd.initd b/main/pcsc-lite/pcscd.initd index 7c580253a14..f75f97d2adb 100644 --- a/main/pcsc-lite/pcscd.initd +++ b/main/pcsc-lite/pcscd.initd @@ -1,16 +1,13 @@ #!/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 +description="PC/SC Smart Card Daemon" command=/usr/sbin/pcscd -command_args="${EXTRA_OPTS}" - -start_stop_daemon_args="--user pcscd:pcscd" +# EXTRA_OPTS is for backward compatibility only (Alpine <3.16) +command_args="${cfgfile:+--config $cfgfile} --foreground ${command_args:-$EXTRA_OPTS}" +command_background=true +command_user="pcscd:pcscd" +pidfile=/run/pcscd.pid +capabilities="^cap_dac_override" depend() { need localmount @@ -19,5 +16,5 @@ depend() { } start_pre() { - checkpath -d -m 0755 -o pcscd:pcscd /run/pcscd + checkpath -d -m 0755 -o "$command_user" /run/pcscd } |