mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Bug 10679 - increase file descriptor limit to 4096
Resolved fixed
This commit is contained in:
parent
6d3e30f16c
commit
5307f4eed4
@ -387,6 +387,11 @@ fi
|
|||||||
%pre client
|
%pre client
|
||||||
id %{name} > /dev/null 2>&1 || /usr/sbin/useradd -M -c "Cloud.com unprivileged user" \
|
id %{name} > /dev/null 2>&1 || /usr/sbin/useradd -M -c "Cloud.com unprivileged user" \
|
||||||
-r -s /bin/sh -d %{_sharedstatedir}/%{name}/management %{name}|| true
|
-r -s /bin/sh -d %{_sharedstatedir}/%{name}/management %{name}|| true
|
||||||
|
|
||||||
|
# set max file descriptors for cloud user to 4096
|
||||||
|
sed -i /"cloud"/d /etc/security/limits.conf
|
||||||
|
echo "cloud hard nofile 4096" >> /etc/security/limits.conf
|
||||||
|
echo "cloud soft nofile 4096" >> /etc/security/limits.conf
|
||||||
rm -rf %{_localstatedir}/cache/%{name}
|
rm -rf %{_localstatedir}/cache/%{name}
|
||||||
# user harcoded here, also hardcoded on wscript
|
# user harcoded here, also hardcoded on wscript
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user