S21haveged 404 B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. case "$1" in
  3. start)
  4. printf "Starting haveged: "
  5. start-stop-daemon -S -x /usr/sbin/haveged -- -w 1024 -r 0
  6. [ $? = 0 ] && echo "OK" || echo "FAIL"
  7. ;;
  8. stop)
  9. printf "Stopping haveged: "
  10. start-stop-daemon -K -x /usr/sbin/haveged
  11. [ $? = 0 ] && echo "OK" || echo "FAIL"
  12. ;;
  13. restart|reload)
  14. $0 stop
  15. $0 start
  16. ;;
  17. *)
  18. echo "Usage: $0 {start|stop|restart}"
  19. exit 1
  20. esac
  21. exit 0