Browse Source

generated shared secret for rndc/bind9; ok millert@

OPENBSD_3_3
jakob 22 years ago
parent
commit
b4f6db9439
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      src/etc/rc

+ 11
- 1
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.216 2003/01/20 20:42:28 millert Exp $
# $OpenBSD: rc,v 1.217 2003/01/20 22:42:01 jakob Exp $
# System startup script run by init on autoboot
# or after single-user.
@ -203,6 +203,16 @@ if [ X"${pf}" != X"NO" -a X"${pflogd_flags}" != X"NO" ]; then
pflogd ${pflogd_flags}
fi
if [ -x /usr/sbin/rndc-confgen -a ! -f /etc/rndc.key ]; then
echo -n "rndc-confgen: generating new shared secret... "
if /usr/sbin/rndc-confgen -a; then
install -c -o root -g named -m 640 /etc/rndc.key /var/named/etc
echo done.
else
echo failed.
fi
fi
# $named_flags, $named_user, and $named_chroot are imported from /etc/rc.conf;
# if $named_flags != NO, named is run.
if [ "X${named_flags}" != X"NO" ]; then


Loading…
Cancel
Save