/srv/irclogs.ubuntu.com/2013/06/04/#upstart.txt

benccsetting nofile limit in /etc/security/limits.conf has no effect on a server started by upstart?10:41
jodhbencc: Upstart doesn't support PAM directly (although it does support rlimits and OOM limits), but you can trigger it to be used if you wish using su/sudo/etc. See http://upstart.ubuntu.com/cookbook/#changing-user.10:51
benccjodh: I increased nofile limit in limits.conf but checking /proc/<pid>/limits show it still has 1024 limit10:53
benccwhen adding this to my upstart script the limits are raised limit nofile 30000 3000010:53
benccis this specific to upstart or do I need to do the same for init.d script as well?10:53
jodhbencc: the "limit" stanza is upstart-specific, but you can easily convert it to the shells ulimit syntax.10:57
benccjodh: do I put it inside the script ... end script block?10:59
benccor in the main block?10:59
jodhbencc: ?11:01
benccjodh:  is this how I use "limit" ? http://dpaste.com/1210781/11:03
benccor do I need to put it between lines 20 and 25?11:04
jodhbencc: it's an upstart stanza, so it does needs to go outside any script stanza as the shell won't understand it. it's fine on line 11 as shown. I thought you already said you had that working??11:07
benccjodh: until 10 minutes ago I only used /etc/security/limits.conf11:09
benccnow I'm trying to understand if I need to do the same for nginx in /etc/init.d/nginx 11:09
=== JanC__ is now known as JanC
=== JanC is now known as Guest45370
=== Guest45370 is now known as JanC
=== chras_ is now known as chras
=== SpamapS_ is now known as SpamapS

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!