I modify /etc/security/limits.conf on the machine and then install Supervisor in the chef's recipe. After completing the recipe, if I run cat /proc/<process id>/limits, I see:
Limit Soft Limit Hard Limit Units
Max cpu time unlimited unlimited seconds
Max open files 1024 4096 files
If I log into the machine and run service supervisor restart, the maximum open files will be installed correctly. However, if I run this command in the recipe (immediately after installing the supervisor, at the very end of the recipe, whatever), the limit does not change. Only after I log into the system and manually run this command does this limit change.
How can I get a restriction on opening a file for a supervisor to modify it using a chef's recipe? The operating system is Ubuntu 12.04.
source
share