12345678910111213141516171819202122232425262728293031 |
- #!/bin/sh
- . /lib/lsb/init-functions
- case "$1" in
- start)
- log_info_msg "Starting Pcsc event daemon..."
- nohup /usr/bin/pcscd </dev/null >> /var/log/pcscd.log 2>&1 &
- # pcscd --foreground --auto-exit
- ;;
- stop)
- killall -9 pcscd
- ;;
-
- reload)
- /usr/bin/pcscd --hotplug
- ;;
-
- restart)
- $0 stop
- sleep 1
- $0 start
- ;;
- *)
- echo "Usage: $0 {start|stop|restart|status}"
- exit 1
- ;;
- esac
|