#!/usr/bin/env /lib/runit/invoke-run
set -e

NAME="haveged"
DAEMON=/usr/sbin/haveged

# Exit service if DAEMON is not installed
if [ ! -x $DAEMON ]; then
	exit 161
fi

# Load defaults
[ -r /etc/default/haveged ] && . /etc/default/haveged

exec 2>&1

exec $DAEMON -F ${DAEMON_ARGS}
