pcscd 478 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/sh
  2. . /lib/lsb/init-functions
  3. case "$1" in
  4. start)
  5. log_info_msg "Starting Pcsc event daemon..."
  6. nohup /usr/bin/pcscd </dev/null >> /var/log/pcscd.log 2>&1 &
  7. # pcscd --foreground --auto-exit
  8. ;;
  9. stop)
  10. killall -9 pcscd
  11. ;;
  12. reload)
  13. /usr/bin/pcscd --hotplug
  14. ;;
  15. restart)
  16. $0 stop
  17. sleep 1
  18. $0 start
  19. ;;
  20. *)
  21. echo "Usage: $0 {start|stop|restart|status}"
  22. exit 1
  23. ;;
  24. esac