From 9a74cb206dc53cbfa4a4f5dfe143356eb461c43d Mon Sep 17 00:00:00 2001 From: frank Date: Mon, 8 Oct 2012 17:27:16 -0700 Subject: [PATCH] remove changes of /etc/security/limits.conf from spec file --- cloud.spec | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cloud.spec b/cloud.spec index bdd380b4f96..2bee65f026e 100644 --- a/cloud.spec +++ b/cloud.spec @@ -335,11 +335,6 @@ fi id %{name} > /dev/null 2>&1 || /usr/sbin/useradd -M -c "CloudStack unprivileged user" \ -r -s /bin/sh -d %{_sharedstatedir}/%{name}/management %{name}|| true -# set max file descriptors for cloud user to 4096 -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} # user harcoded here, also hardcoded on wscript