milis/ayarlar/servisler/mbd/init.d/pcsc

31 lines
478 B
Bash

#!/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