#!/bin/sh
Usage() { echo "Usage: `basename $0` {start|stop|restart}" >&2 exit 1 }
if [ -r /etc/defaults/rc.conf ]; then . /etc/defaults/rc.conf source_rc_confs elif [ -r /etc/rc.conf ]; then . /etc/rc.conf fi
case $1 in stop) /usr/sbin/ndc stop ;; start) $named_program $named_flags ;; restart) /usr/sbin/ndc -n ${named_program} restart ${named_flags};; *) Usage ;; esac
а в /etc/rc.conf у меня стоит
# # For chroot'ed bind # named_enable="YES" named_program="/chroot/named/named" named_flags="-u bind -g bind -t /chroot/named" syslog_flags="-vv -l /chroot/named/dev/log"
|