From 6df005aef7dcb35ce917857c8c39609b7cbbe20e Mon Sep 17 00:00:00 2001 From: Edison Su Date: Tue, 14 Feb 2012 16:16:28 -0800 Subject: [PATCH] bug 13698: set max processes per user is ulimited status 13698: resolved fixed Reviewed-by: alex --- python/lib/cloudutils/serviceConfigServer.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/python/lib/cloudutils/serviceConfigServer.py b/python/lib/cloudutils/serviceConfigServer.py index 0419f57616c..d91b39b97b7 100644 --- a/python/lib/cloudutils/serviceConfigServer.py +++ b/python/lib/cloudutils/serviceConfigServer.py @@ -90,7 +90,13 @@ class cloudManagementConfig(serviceCfgBase): #distro like sl 6.1 needs this folder, or tomcat6 failed to start checkHostName() bash("mkdir /var/log/cloud-management/") - + #set max process per account is unlimited + if os.path.exists("/etc/security/limits.conf"): + cfo = configFileOps("/etc/security/limits.conf") + cfo.add_lines("cloud soft nproc -1\n") + cfo.add_lines("cloud hard nproc -1\n") + cfo.save() + try: self.syscfg.svo.disableService("tomcat6") except: