Sun, 02 Sep 2012 18:18:43 +0200
Introduce new version of tcpdump, reorder taglib and cryptbreaker to
the end because they fail to build on Linux, and correct flawed URLs
probably copied from the doxygen build entry.
1 #!@l_prefix@/bin/openpkg rc
2 ##
3 ## rc.bind -- Run-Commands
4 ##
6 %config
7 bind_enable="$openpkg_rc_def"
8 bind_flags=""
9 bind_log_prolog="true"
10 bind_log_epilog="true"
11 bind_log_numfiles="10"
12 bind_log_minsize="1M"
13 bind_log_complevel="9"
14 bind_stats_prolog="true"
15 bind_stats_epilog="true"
16 bind_stats_numfiles="10"
17 bind_stats_minsize="1M"
18 bind_stats_complevel="9"
20 %status -u @l_susr@ -o
21 bind_usable="no"
22 bind_active="no"
23 @l_prefix@/sbin/named-checkconf >/dev/null && bind_usable="yes"
24 @l_prefix@/sbin/rndc status >/dev/null 2>&1 && bind_active="yes"
25 echo "bind_enable=\"$bind_enable\""
26 echo "bind_usable=\"$bind_usable\""
27 echo "bind_active=\"$bind_active\""
29 %start -p 100 -u @l_susr@
30 rcService bind enable yes || exit 0
31 rcService bind active yes && exit 0
32 @l_prefix@/sbin/named -u @l_rusr@ ${bind_flags}
34 %stop -p 900 -u @l_susr@
35 rcService bind enable yes || exit 0
36 rcService bind active no && exit 0
37 @l_prefix@/sbin/rndc stop
38 sleep 2
40 %restart -p 100 -u @l_susr@
41 rcService bind enable yes || exit 0
42 rcService bind active no && exit 0
43 rc bind stop start
45 %reload -p 100 -u @l_susr@
46 rcService bind enable yes || exit 0
47 rcService bind active no && exit 0
48 @l_prefix@/sbin/rndc reload
50 %daily -u @l_susr@
51 rcService bind enable yes || exit 0
52 shtool rotate -f \
53 -n $bind_stats_numfiles -s $bind_stats_minsize -d \
54 -z $bind_stats_complevel -m 644 -o @l_rusr@ -g @l_rgrp@ \
55 -P "$bind_stats_prolog" \
56 -E "$bind_stats_epilog" \
57 @l_prefix@/var/bind/named.stats
58 shtool rotate -f \
59 -n $bind_log_numfiles -s $bind_log_minsize -d \
60 -z $bind_log_complevel -m 644 -o @l_rusr@ -g @l_rgrp@ \
61 -P "$bind_log_prolog" \
62 -E "$bind_log_epilog; rc bind reload" \
63 @l_prefix@/var/bind/named.log