Browse Source

%status, fix up rc priorities

master
Michael van Elst 23 years ago committed by Ralf S. Engelschall
parent
commit
646d244a4f
  1. 2
      bind/bind.spec
  2. 15
      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: 20030717 Release: 20030718
# package options # package options
%option with_dlz_mysql no %option with_dlz_mysql no

15
bind/rc.bind

@ -10,21 +10,30 @@
bind_log_minsize="512K" bind_log_minsize="512K"
bind_log_complevel="9" bind_log_complevel="9"
%status -p 100 -u @l_susr@ -o
bind_usable="no"
bind_active="no"
@l_prefix@/sbin/named-checkconf >/dev/null && bind_usable="yes"
@l_prefix@/sbin/rndc status >/dev/null 2>&1 && bind_active="yes"
echo "bind_enable=\"$bind_enable\""
echo "bind_usable=\"$bind_usable\""
echo "bind_active=\"$bind_active\""
%start -p 100 -u @l_susr@ %start -p 100 -u @l_susr@
opService bind enable yes || exit 0 opService bind enable yes || exit 0
@l_prefix@/sbin/named ${bind_flags} @l_prefix@/sbin/named ${bind_flags}
%stop -p 200 -u @l_susr@ %stop -p 100 -u @l_susr@
opService bind enable yes || exit 0 opService bind enable yes || exit 0
@l_prefix@/sbin/rndc stop @l_prefix@/sbin/rndc stop
%restart -u @l_susr@ %restart -p 100 -u @l_susr@
opService bind enable yes || exit 0 opService bind enable yes || exit 0
@l_prefix@/sbin/rndc stop @l_prefix@/sbin/rndc stop
sleep 1 sleep 1
@l_prefix@/sbin/named ${bind_flags} @l_prefix@/sbin/named ${bind_flags}
%reload -u @l_susr@ %reload -p 100 -u @l_susr@
opService bind enable yes || exit 0 opService bind enable yes || exit 0
@l_prefix@/sbin/rndc reload @l_prefix@/sbin/rndc reload

Loading…
Cancel
Save