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.000000000 +0000
+++ nginx-ulimit-fix 2012-05-12 08:33:04.000000000 +0000
@@ -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."