pcscd.rc 440 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/sh
  2. #
  3. # /etc/rc.d/pcscd: start/stop Network Manager
  4. #
  5. . /etc/rc.subr
  6. NAME="pcscd"
  7. PROG=/usr/sbin/pcscd
  8. PID=/run/$NAME/$NAME.pid
  9. case $1 in
  10. start)
  11. msg "Starting $NAME..."
  12. start_daemon -p $PID $PROG
  13. ;;
  14. stop)
  15. msg "Stopping $NAME..."
  16. stop_daemon -p $PID $PROG
  17. ;;
  18. restart)
  19. $0 stop
  20. sleep 1
  21. $0 start
  22. ;;
  23. status)
  24. status_daemon $PROG
  25. ;;
  26. *)
  27. echo "usage: $0 [start|stop|restart|status]"
  28. ;;
  29. esac
  30. # End of file