|
|
|
|
@ -6,8 +6,10 @@
|
|
|
|
|
%config |
|
|
|
|
bind_enable="$openpkg_rc_def" |
|
|
|
|
bind_flags="" |
|
|
|
|
bind_log_numfiles="5" |
|
|
|
|
bind_log_minsize="512K" |
|
|
|
|
bind_log_prolog="true" |
|
|
|
|
bind_log_epilog="true" |
|
|
|
|
bind_log_numfiles="10" |
|
|
|
|
bind_log_minsize="1M" |
|
|
|
|
bind_log_complevel="9" |
|
|
|
|
|
|
|
|
|
%status -u @l_susr@ -o |
|
|
|
|
@ -21,27 +23,33 @@
|
|
|
|
|
|
|
|
|
|
%start -p 100 -u @l_susr@ |
|
|
|
|
rcService bind enable yes || exit 0 |
|
|
|
|
rcService bind active yes && exit 0 |
|
|
|
|
@l_prefix@/sbin/named ${bind_flags} |
|
|
|
|
|
|
|
|
|
%stop -p 100 -u @l_susr@ |
|
|
|
|
rcService bind enable yes || exit 0 |
|
|
|
|
rcService bind active no && exit 0 |
|
|
|
|
@l_prefix@/sbin/rndc stop |
|
|
|
|
sleep 2 |
|
|
|
|
|
|
|
|
|
%restart -p 100 -u @l_susr@ |
|
|
|
|
rcService bind enable yes || exit 0 |
|
|
|
|
@l_prefix@/sbin/rndc stop |
|
|
|
|
sleep 1 |
|
|
|
|
@l_prefix@/sbin/named ${bind_flags} |
|
|
|
|
rcService bind active no && exit 0 |
|
|
|
|
rc bind stop start |
|
|
|
|
|
|
|
|
|
%reload -p 100 -u @l_susr@ |
|
|
|
|
rcService bind enable yes || exit 0 |
|
|
|
|
rcService bind active no && exit 0 |
|
|
|
|
@l_prefix@/sbin/rndc reload |
|
|
|
|
|
|
|
|
|
%daily -u @l_susr@ |
|
|
|
|
rcService bind enable yes || exit 0 |
|
|
|
|
|
|
|
|
|
# rotate logfile |
|
|
|
|
shtool rotate -f \ |
|
|
|
|
-n ${bind_log_numfiles} -s ${bind_log_minsize} \ |
|
|
|
|
-d -z ${bind_log_complevel} -o @l_musr@ -g @l_mgrp@ -m 644 \ |
|
|
|
|
-E '@l_prefix@/sbin/rndc reload' \ |
|
|
|
|
-n ${bind_log_numfiles} -s ${bind_log_minsize} -d \ |
|
|
|
|
-z ${bind_log_complevel} -m 644 -o @l_susr@ -g @l_mgrp@ \ |
|
|
|
|
-P "${bind_log_prolog}" \ |
|
|
|
|
-E "${bind_log_epilog} && rc bind reload" \ |
|
|
|
|
@l_prefix@/var/bind/named.log |
|
|
|
|
|
|
|
|
|
|