summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/named
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2004-01-17 10:59:43 +0000
committermtm <mtm@FreeBSD.org>2004-01-17 10:59:43 +0000
commit5da6236d0167eab4e233aaf815198eb7d1fe5898 (patch)
tree6439610462f4b5b56816a33d4ba3c60ab1fe1868 /etc/rc.d/named
parent7948e91c15e85d387bf8070d18fd9257a7d982be (diff)
downloadFreeBSD-src-5da6236d0167eab4e233aaf815198eb7d1fe5898.zip
FreeBSD-src-5da6236d0167eab4e233aaf815198eb7d1fe5898.tar.gz
Luke Mewburn has indicated that they (NetBSD) are not interested
in keeping the scripts under rc.d in sync with us. So, remove NetBSD specific stuff (which made our scripts more complicated than necessary). The NetBSD ident string will be left intact, both for history and also incase we wish to pull in future versions.
Diffstat (limited to 'etc/rc.d/named')
-rwxr-xr-xetc/rc.d/named53
1 files changed, 13 insertions, 40 deletions
diff --git a/etc/rc.d/named b/etc/rc.d/named
index c7ff4f8..0d4cb9d 100755
--- a/etc/rc.d/named
+++ b/etc/rc.d/named
@@ -17,17 +17,8 @@ command="/usr/sbin/${name}"
start_precmd="named_precmd"
required_dirs="$named_chrootdir" # if it is set, it must exist
extra_commands="reload"
-
-case ${OSTYPE} in
-FreeBSD)
- nuser=bind
- ngroup=bind
- ;;
-NetBSD)
- nuser=named
- ngroup=named
- ;;
-esac
+nuser=bind
+ngroup=bind
# If running in a chroot cage, ensure that the appropriate files
# exist inside the cage, as well as helper symlinks into the cage
@@ -78,40 +69,22 @@ make_symlinks()
named_precmd()
{
- case ${OSTYPE} in
- FreeBSD)
- ! checkyesno named_rcng && return 0
- # Is the user using a sandbox?
- if [ -z "$named_chrootdir" ]; then
- rc_flags="-u $nuser -g $ngroup $rc_flags"
- return 0
- fi
+ ! checkyesno named_rcng && return 0
+ # Is the user using a sandbox?
+ if [ -z "$named_chrootdir" ]; then
+ rc_flags="-u $nuser -g $ngroup $rc_flags"
+ return 0
+ fi
- # Do the following checks only if the user wants them done
- checkyesno named_chroot_autoupdate && chroot_autoupdate
- ;;
- NetBSD)
- chroot_autoupdate
- ;;
- esac
+ # Do the following checks only if the user wants them done
+ checkyesno named_chroot_autoupdate && chroot_autoupdate
- case ${OSTYPE} in
- FreeBSD)
- # Make the symlinks only if the user wants them done.
- checkyesno named_symlink_enable && make_symlinks
- ;;
- NetBSD)
- make_symlinks
- ;;
- esac
+ # Make the symlinks only if the user wants them done.
+ checkyesno named_symlink_enable && make_symlinks
# Change run_rc_commands()'s internal copy of $named_flags
#
- case ${OSTYPE} in
- FreeBSD)
- ! checkyesno named_rcng && return
- ;;
- esac
+ ! checkyesno named_rcng && return
rc_flags="-u $nuser -g $ngroup -t ${named_chrootdir} $rc_flags"
}
OpenPOWER on IntegriCloud