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

31 lines
478 B
Plaintext
Raw Normal View History

2018-06-12 15:35:08 +02:00
#!/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)
2018-06-13 05:12:26 +02:00
killall -9 pcscd
2018-06-12 15:35:08 +02:00
;;
reload)
/usr/bin/pcscd --hotplug
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
exit 1
;;
esac