mirror of https://github.com/apache/cloudstack.git
Bug 11627 - Upgrade 2.2.11-GA to 2.2.12-GA did not preserve /etc/security/limits.conf thereby clobbering previous OS level configurations
status 11627: resolved fixed
This commit is contained in:
parent
791cde1948
commit
c46f9c5bf0
|
|
@ -353,7 +353,8 @@ id %{name} > /dev/null 2>&1 || /usr/sbin/useradd -M -c "Cloud.com unprivileged u
|
|||
-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
|
||||
sed -i /"cloud hard nofile"/d /etc/security/limits.conf
|
||||
sed -i /"cloud soft nofile"/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}
|
||||
|
|
|
|||
Loading…
Reference in New Issue