Add key generation for unbound remote control used for munin module

This commit is contained in:
Paul Wouters 2008-11-15 06:41:55 +00:00
parent 2f4a25bc7c
commit ec151e139e

View File

@ -33,6 +33,14 @@ lockfile=/var/lock/subsys/unbound
start() {
[ -x $exec ] || exit 5
[ -f $config ] || exit 6
if [ ! -f /var/lib/unbound/unbound_control.key ]
then
echo -n $"Generating unbound control key and certificate: "
/usr/sbin/unbound-control-setup > /dev/null 2> /dev/null
echo
fi
echo -n $"Starting unbound: "
if [ ! -e ${rootdir}/etc/resolv.conf ] || /usr/bin/cmp -s /etc/resolv.conf ${rootdir}/etc/resolv.conf; then