|
|
@ -5,6 +5,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
%config |
|
|
|
%config |
|
|
|
bind8_enable="$openpkg_rc_def" |
|
|
|
bind8_enable="$openpkg_rc_def" |
|
|
|
|
|
|
|
bind8_log_prolog="true" |
|
|
|
|
|
|
|
bind8_log_epilog="true" |
|
|
|
bind8_log_numfiles="5" |
|
|
|
bind8_log_numfiles="5" |
|
|
|
bind8_log_minsize="512K" |
|
|
|
bind8_log_minsize="512K" |
|
|
|
bind8_log_complevel="9" |
|
|
|
bind8_log_complevel="9" |
|
|
@ -19,25 +21,32 @@ |
|
|
|
|
|
|
|
|
|
|
|
%start -p 100 -u @l_susr@ |
|
|
|
%start -p 100 -u @l_susr@ |
|
|
|
rcService bind8 enable yes || exit 0 |
|
|
|
rcService bind8 enable yes || exit 0 |
|
|
|
|
|
|
|
rcService bind8 active yes && exit 0 |
|
|
|
@l_prefix@/sbin/ndc start |
|
|
|
@l_prefix@/sbin/ndc start |
|
|
|
|
|
|
|
|
|
|
|
%stop -p 100 -u @l_susr@ |
|
|
|
%stop -p 100 -u @l_susr@ |
|
|
|
rcService bind8 enable yes || exit 0 |
|
|
|
rcService bind8 enable yes || exit 0 |
|
|
|
|
|
|
|
rcService bind8 active no && exit 0 |
|
|
|
@l_prefix@/sbin/ndc stop |
|
|
|
@l_prefix@/sbin/ndc stop |
|
|
|
|
|
|
|
|
|
|
|
%restart -p 100 -u @l_susr@ |
|
|
|
%restart -p 100 -u @l_susr@ |
|
|
|
rcService bind8 enable yes || exit 0 |
|
|
|
rcService bind8 enable yes || exit 0 |
|
|
|
|
|
|
|
rcService bind8 active no && exit 0 |
|
|
|
@l_prefix@/sbin/ndc restart |
|
|
|
@l_prefix@/sbin/ndc restart |
|
|
|
|
|
|
|
|
|
|
|
%reload -p 100 -u @l_susr@ |
|
|
|
%reload -p 100 -u @l_susr@ |
|
|
|
rcService bind8 enable yes || exit 0 |
|
|
|
rcService bind8 enable yes || exit 0 |
|
|
|
|
|
|
|
rcService bind8 active no && exit 0 |
|
|
|
@l_prefix@/sbin/ndc reload |
|
|
|
@l_prefix@/sbin/ndc reload |
|
|
|
|
|
|
|
|
|
|
|
%daily -u @l_susr@ |
|
|
|
%daily -u @l_susr@ |
|
|
|
rcService bind8 enable yes || exit 0 |
|
|
|
rcService bind8 enable yes || exit 0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# rotate logfile |
|
|
|
shtool rotate -f \ |
|
|
|
shtool rotate -f \ |
|
|
|
-n ${bind8_log_numfiles} -s ${bind8_log_minsize} \ |
|
|
|
-n ${bind8_log_numfiles} -s ${bind8_log_minsize} -d \ |
|
|
|
-d -z ${bind8_log_complevel} -o @l_musr@ -o @l_mgrp@ -m 644 \ |
|
|
|
-z ${bind8_log_complevel} -o @l_susr@ -o @l_mgrp@ -m 644 \ |
|
|
|
-E '@l_prefix@/sbin/ndc restart | grep -v "new pid is"' \ |
|
|
|
-P "${bind8_log_prolog}" \ |
|
|
|
|
|
|
|
-E "${bind8_log_epilog} && rc bind8 restart" \ |
|
|
|
@l_prefix@/var/bind/named.log |
|
|
|
@l_prefix@/var/bind/named.log |
|
|
|
|
|
|
|
|
|
|
|