5 printf "Starting haveged: "
6 start-stop-daemon -S -x /usr/sbin/haveged -- -w 1024 -r 0
7 [ $? = 0 ] && echo "OK" || echo "FAIL"
10 printf "Stopping haveged: "
11 start-stop-daemon -K -x /usr/sbin/haveged
12 [ $? = 0 ] && echo "OK" || echo "FAIL"
19 echo "Usage: $0 {start|stop|restart}"