#!/bin/sh . /lib/lsb/init-functions case "$1" in start) log_info_msg "Starting Pcsc event daemon..." nohup /usr/bin/pcscd > /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