mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-05-12 14:34:20 +02:00
20 lines
475 B
Bash
20 lines
475 B
Bash
#!/sbin/openrc-run
|
|
description="PC/SC Smart Card Daemon"
|
|
|
|
command=/usr/sbin/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
|
|
after udev openct dbus
|
|
use logger
|
|
}
|
|
|
|
start_pre() {
|
|
checkpath -d -m 0755 -o "$command_user" /run/pcscd
|
|
}
|