How to set ulimits for a service starting at boot?

Posted by jayofdoom on Server Fault See other posts from Server Fault or by jayofdoom
Published on 2012-03-29T13:49:33Z Indexed on 2012/03/29 17:32 UTC
Read the original article Hit count: 186

Filed under:
|
|
|

I need, for mysql to use large-pages, to set a ulimit - I've done this in limits.conf. However, limits.conf (pam_limits.so), doesn't get read in for init, only for "real" shells. I solved this before by adding a "ulimit -l" to the initscript start function. but I need some sort of repeatable way to do this, now that the boxes are managed with chef, and we don't want to take over a file that's actually owned by the RPM.

© Server Fault or respective owner

Related posts about linux

Related posts about mysql