#!/sbin/runscript # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ HAVEGED_CONF="/etc/conf.d/haveged.conf" PIDFILE="/var/run/haveged.pid" start() { ebegin "Starting haveged" start-stop-daemon --quiet --start --pidfile "${PIDFILE}" \ --background --exec /usr/sbin/haveged -- -w "${HAVEGED_WRITE_WAKEUP}" eend $? } stop() { ebegin "Stopping haveged" start-stop-daemon --quiet --stop --pidfile "${PIDFILE}" eend $? }