From c46f9c5bf0d96b8f301d36300fb055c590123f22 Mon Sep 17 00:00:00 2001 From: frank Date: Wed, 12 Oct 2011 18:37:25 -0700 Subject: [PATCH] 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 --- cloud.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cloud.spec b/cloud.spec index 2aa0f6b220d..ccc74283801 100644 --- a/cloud.spec +++ b/cloud.spec @@ -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}