Cannot set ulimit in /etc/default/nginx

Bug #699736 reported by Calin Don on 2011-01-07
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Michael Lustfield

Bug Description

Setting ulimit parameters in /etc/default/nginx throws error on nginx start:
Starting nginx: [: 91: -n: unexpected operator

Could you please upload /etc/default/nginx?

Changed in nginx:
status: New → Incomplete

Marking invalid due to inactivity and lack of information.

Changed in nginx:
status: Incomplete → Invalid
Calin Don (calind) wrote :

Here is the content of /etc/default/nginx

# Set the ulimit variable if you need defaults to change.
# Example: ULIMIT="-n 4096"
ULIMIT="-n 4096"

This happens only on service nginx start (restart works)

Thanks for pointing out the specific case that this occurs. Simple and easy fix. I will have this pushed to Nginx in Debian very soon. There are two other outstanding Nginx bugs that need to be addressed before the new package is uploaded and then I will file a sync request for Ubuntu. There are many changes that need to be sync'ed and I hope I can get them in time. :)

Changed in nginx:
assignee: nobody → Michael Lustfield (mtecknology)
status: Invalid → In Progress

This fix will be part of nginx_0.8.54-3 and has been committed to the debian repository. When this version is released, I will request a sync of this package.

Changed in nginx:
status: In Progress → Fix Committed
Changed in nginx:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers