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