Bug#672580: ulimit not working for restarts
Package: nginx Version: 1.1.19-1 The patch from #606094 does only set the ulimit for the start action, but not for restarts of nginx. The attached patch for /etc/init.d/nginx fixes the setting of the ulimit for restarts of nginx. --- nginx 2012-05-12 08:16:47.0 + +++ nginx-ulimit-fix2012-05-12 08:33:04.0 + @@ -62,6 +62,11 @@ /var/run/$NAME.pid --exec $DAEMON || true sleep 1 test_nginx_config +# Check if the ULIMIT is set in /etc/default/nginx +if [ -n $ULIMIT ]; then +# Set the ulimits +ulimit $ULIMIT +fi start-stop-daemon --start --quiet --pidfile \ /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS || true echo $NAME.
Bug#672580: ulimit not working for restarts
On Sat, May 12, 2012 at 2:18 PM, Daniel Roschka danielrosc...@phoenitydawn.de wrote: The patch from #606094 does only set the ulimit for the start action, but not for restarts of nginx. The attached patch for /etc/init.d/nginx fixes the setting of the ulimit for restarts of nginx. Thanks a lot. This is fixed in upcoming 1.2.0-1 upload. -- Kartik Mistry | IRC: kart_ {0x1f1f, kartikm}.wordpress.com -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org