Browse Source

add bind_flags for allowing user/group/config overwriting on startup

master
parent
commit
49b122bd36
  1. 2
      bind/bind.spec
  2. 5
      bind/rc.bind

2
bind/bind.spec

@ -37,7 +37,7 @@ Distribution: OpenPKG [BASE]
Group: DNS Group: DNS
License: ISC License: ISC
Version: %{V_bind} Version: %{V_bind}
Release: 20030413 Release: 20030414
# package options # package options
%option with_dlz_mysql no %option with_dlz_mysql no

5
bind/rc.bind

@ -5,13 +5,14 @@
%config %config
bind_enable="yes" bind_enable="yes"
bind_flags=""
bind_log_numfiles="5" bind_log_numfiles="5"
bind_log_minsize="512K" bind_log_minsize="512K"
bind_log_complevel="9" bind_log_complevel="9"
%start -p 100 -u @l_susr@ %start -p 100 -u @l_susr@
if opServiceEnabled bind; then if opServiceEnabled bind; then
@l_prefix@/sbin/named @l_prefix@/sbin/named ${bind_flags}
fi fi
%stop -p 200 -u @l_susr@ %stop -p 200 -u @l_susr@
@ -23,7 +24,7 @@
if opServiceEnabled bind; then if opServiceEnabled bind; then
@l_prefix@/sbin/rndc stop @l_prefix@/sbin/rndc stop
sleep 1 sleep 1
@l_prefix@/sbin/named @l_prefix@/sbin/named ${bind_flags}
fi fi
%reload -u @l_susr@ %reload -u @l_susr@

Loading…
Cancel
Save