3 [ -x /usr/sbin/haveged ] || exit 0
7 echo -n "Starting haveged: "
8 start-stop-daemon -S -x /usr/sbin/haveged -- -w 1024 -r 0
9 [ $? = 0 ] && echo "OK" || echo "FAIL"
12 echo -n "Stopping haveged: "
13 start-stop-daemon -K -x /usr/sbin/haveged
14 [ $? = 0 ] && echo "OK" || echo "FAIL"
21 echo "Usage: $0 {start|stop|restart}"