Skip to content

Commit 6df005a

Browse files
Edison SuEdison Su
authored andcommitted
bug 13698: set max processes per user is ulimited
status 13698: resolved fixed Reviewed-by: alex
1 parent d6935a0 commit 6df005a

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

python/lib/cloudutils/serviceConfigServer.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,13 @@ def checkHostName():
9090
#distro like sl 6.1 needs this folder, or tomcat6 failed to start
9191
checkHostName()
9292
bash("mkdir /var/log/cloud-management/")
93-
93+
#set max process per account is unlimited
94+
if os.path.exists("/etc/security/limits.conf"):
95+
cfo = configFileOps("/etc/security/limits.conf")
96+
cfo.add_lines("cloud soft nproc -1\n")
97+
cfo.add_lines("cloud hard nproc -1\n")
98+
cfo.save()
99+
94100
try:
95101
self.syscfg.svo.disableService("tomcat6")
96102
except:

0 commit comments

Comments
 (0)