]>
git.ipfire.org Git - people/mfischer/ipfire-2.x.git/blob - src/initscripts/packages/dnsdist
2 ########################################################################
3 # Begin $rc_base/init.d/dnsdist
5 # Description : dnsdist - A DNS load-balancer and more
7 ########################################################################
12 [ -r "/etc/sysconfig/dnsdist" ] && .
/etc
/sysconfig
/dnsdist
15 if ! /usr
/bin
/dnsdist
--check-config >/dev
/null
; then
16 boot_mesg
"dnsdist configuration file contains errors" "${FAILURE}"
26 if ! check_config
; then
30 boot_mesg
"Starting dnsdist..."
32 # Increasing maximum number of open files
36 /usr
/bin
/dnsdist
--supervised ${ARGS} >/dev
/null
&
41 boot_mesg
"Stopping dnsdist..."
42 killproc
/usr
/bin
/dnsdist
46 if ! check_config
; then
50 boot_mesg
"Reloading dnsdist..."
51 reloadproc
/usr
/bin
/dnsdist
55 if ! check_config
; then
65 statusproc
/usr
/bin
/dnsdist
69 echo "Usage: ${0} {start|stop|reload|restart|status}"
74 # End $rc_base/init.d/dnsdist