Browse Source

to turn of named chroot set to be empty, not 'NO'

OPENBSD_2_4
millert 26 years ago
parent
commit
aea31e832f
2 changed files with 5 additions and 5 deletions
  1. +3
    -3
      src/etc/rc
  2. +2
    -2
      src/etc/rc.conf

+ 3
- 3
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.74 1998/06/03 16:04:07 millert Exp $
# $OpenBSD: rc,v 1.75 1998/06/03 17:12:03 millert Exp $
# System startup script run by init on autoboot
# or after single-user.
@ -85,7 +85,7 @@ rm -f /var/spool/uucp/STST/*
echo 'starting system logger'
rm -f /dev/log
if [ "X${named_chroot}" != "X" -a "X${named_chroot}" != X"NO" ]; then
if [ "X${named_chroot}" != "X" ]; then
rm -f ${named_chroot}/dev/log
syslogd_flags="${syslogd_flags} -a ${named_chroot}/dev/log"
fi
@ -97,7 +97,7 @@ if [ "X${named_flags}" != X"NO" ]; then
if [ "X${named_user}" != "X" -a "X${named_user}" != X"root" ]; then
named_flags="-u ${named_user} ${named_flags}"
fi
if [ "X${named_chroot}" != "X" -a "X${named_chroot}" != X"NO" ]; then
if [ "X${named_chroot}" != "X" ]; then
named_flags="-t ${named_chroot} ${named_flags}"
fi
echo 'starting named'; named $named_flags


+ 2
- 2
src/etc/rc.conf View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $OpenBSD: rc.conf,v 1.21 1998/06/03 16:04:08 millert Exp $
# $OpenBSD: rc.conf,v 1.22 1998/06/03 17:12:05 millert Exp $
# set these to "NO" to turn them off. otherwise, they're used as flags
routed_flags=NO # for 'normal' use: routed_flags="-q"
@ -49,4 +49,4 @@ ipnat_rules=/etc/ipnat.rules # Rules for Network Address Translation
ipmon_flags=-s # To disable logging, use ipmon_flags=NO
syslogd_flags= # add more flags, ie. -u -a /chroot/dev/log
named_user=named # Named should not run as root unless neccesary
named_chroot=/var/named # Where to chroot named unless set to "NO"
named_chroot=/var/named # Where to chroot named if not empty

Loading…
Cancel
Save