pcscd.initd 486 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/openrc-run
  2. # Copyright 1999-2014 Gentoo Foundation
  3. # Copyright 2019 Artix Linux
  4. # Distributed under the terms of the GNU General Public License v2
  5. name="PC/SC Daemon"
  6. pidfile=/run/pcscd/pcscd.pid
  7. command=/usr/bin/pcscd
  8. command_args="${EXTRA_OPTS}"
  9. start_stop_daemon_args="--user ${PCSCD_USER}:${PCSCD_GROUP}"
  10. depend() {
  11. need localmount
  12. after udev openct dbus
  13. use logger
  14. }
  15. start_pre() {
  16. checkpath -d -m 0755 -o ${PCSCD_USER}:${PCSCD_GROUP} /run/pcscd
  17. }