Cannot set ulimit in /etc/default/nginx

Bug #699736 reported by Calin Don
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Nginx
Fix Released
Undecided
Michael Lustfield

Bug Description

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

Revision history for this message
Michael Lustfield (michaellustfield) wrote :

Could you please upload /etc/default/nginx?

Changed in nginx:
status: New → Incomplete
Revision history for this message
Michael Lustfield (michaellustfield) wrote :

Marking invalid due to inactivity and lack of information.

Changed in nginx:
status: Incomplete → Invalid
Revision history for this message
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)

Revision history for this message
Michael Lustfield (michaellustfield) wrote :

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
Revision history for this message
Michael Lustfield (michaellustfield) wrote :

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.