d77venom/ccid/pcscd.rc
2024-10-01 13:37:19 +01:00

34 lines
440 B
Bash
Executable file

#!/bin/sh
#
# /etc/rc.d/pcscd: start/stop Network Manager
#
. /etc/rc.subr
NAME="pcscd"
PROG=/usr/sbin/pcscd
PID=/run/$NAME/$NAME.pid
case $1 in
start)
msg "Starting $NAME..."
start_daemon -p $PID $PROG
;;
stop)
msg "Stopping $NAME..."
stop_daemon -p $PID $PROG
;;
restart)
$0 stop
sleep 1
$0 start
;;
status)
status_daemon $PROG
;;
*)
echo "usage: $0 [start|stop|restart|status]"
;;
esac
# End of file