mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-03 18:41:29 +02:00
dnsdist might need to open large number of connections and therefore the default limit of 1024 needs to be raised. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
53 lines
927 B
Bash
53 lines
927 B
Bash
#!/bin/sh
|
|
########################################################################
|
|
# Begin $rc_base/init.d/dnsdist
|
|
#
|
|
# Description : dnsdist - A DNS load-balancer and more
|
|
#
|
|
########################################################################
|
|
|
|
. /etc/sysconfig/rc
|
|
. ${rc_functions}
|
|
|
|
[ -r "/etc/sysconfig/dnsdist" ] && . /etc/sysconfig/dnsdist
|
|
|
|
case "${1}" in
|
|
start)
|
|
boot_mesg "Starting dnsdist..."
|
|
|
|
# Increasing maximum number of open files
|
|
ulimit -n 65536
|
|
|
|
# Starting daemon
|
|
/usr/bin/dnsdist --supervised ${ARGS} >/dev/null &
|
|
evaluate_retval
|
|
;;
|
|
|
|
stop)
|
|
boot_mesg "Stopping dnsdist..."
|
|
killproc /usr/bin/dnsdist
|
|
;;
|
|
|
|
reload)
|
|
boot_mesg "Reloading dnsdist..."
|
|
reloadproc /usr/bin/dnsdist
|
|
;;
|
|
|
|
restart)
|
|
${0} stop
|
|
sleep 1
|
|
${0} start
|
|
;;
|
|
|
|
status)
|
|
statusproc /usr/bin/dnsdist
|
|
;;
|
|
|
|
*)
|
|
echo "Usage: ${0} {start|stop|reload|restart|status}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
# End $rc_base/init.d/dnsdist
|