From: Donald Sharp Date: Wed, 20 May 2015 01:29:16 +0000 (-0700) Subject: quagga: quagga-startup-fds.patch X-Git-Tag: frr-2.0-rc1~1373 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=f8971778adc69abe65096caddaef06bd21e174d7;p=matthieu%2Ffrr.git quagga: quagga-startup-fds.patch Setup default number of filedescriptors allowed in quagga defaults and ulimit calls Signed-off-by: Donald Sharp Reviewed-by: --- diff --git a/debian/quagga.default b/debian/quagga.default index da9bffeee9..ae1ae129ef 100644 --- a/debian/quagga.default +++ b/debian/quagga.default @@ -1,2 +1,4 @@ MAX_INSTANCES=5 -ENABLE_RELOAD=no \ No newline at end of file +ENABLE_RELOAD=no +MAX_FDS=1024 + diff --git a/debian/quagga.init.d b/debian/quagga.init.d index 093c573412..b9ad6e6669 100755 --- a/debian/quagga.init.d +++ b/debian/quagga.init.d @@ -89,6 +89,7 @@ check_daemon() # The Quagga daemons creates the pidfile when starting. start() { + ulimit -n $MAX_FDS if [ "$1" = "watchquagga" ]; then # We may need to restart watchquagga if new daemons are added and/or