rpms/unbound/devel unbound.init,1.1,1.2

Paul Wouters pwouters at fedoraproject.org
Sat Nov 15 06:42:25 UTC 2008


Author: pwouters

Update of /cvs/extras/rpms/unbound/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv18611

Modified Files:
	unbound.init 
Log Message:
Add key generation for unbound remote control used for munin module



Index: unbound.init
===================================================================
RCS file: /cvs/extras/rpms/unbound/devel/unbound.init,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- unbound.init	31 Oct 2008 22:29:15 -0000	1.1
+++ unbound.init	15 Nov 2008 06:41:55 -0000	1.2
@@ -33,6 +33,14 @@
 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




More information about the fedora-extras-commits mailing list