mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
bug 13698: set max processes per user is ulimited
status 13698: resolved fixed Reviewed-by: alex
This commit is contained in:
parent
d6935a003c
commit
6df005aef7
@ -90,6 +90,12 @@ class cloudManagementConfig(serviceCfgBase):
|
|||||||
#distro like sl 6.1 needs this folder, or tomcat6 failed to start
|
#distro like sl 6.1 needs this folder, or tomcat6 failed to start
|
||||||
checkHostName()
|
checkHostName()
|
||||||
bash("mkdir /var/log/cloud-management/")
|
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:
|
try:
|
||||||
self.syscfg.svo.disableService("tomcat6")
|
self.syscfg.svo.disableService("tomcat6")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user