adopt workaround.conf (as limits.conf)
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Fri, 20 Feb 2009 10:27:44 +0000 (10:27 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Fri, 20 Feb 2009 10:27:44 +0000 (10:27 +0000)
httpd/limits.conf [new file with mode: 0644]
httpd/plewww.conf [moved from httpd.conf with 100% similarity]
plewww.spec

diff --git a/httpd/limits.conf b/httpd/limits.conf
new file mode 100644 (file)
index 0000000..046e0c8
--- /dev/null
@@ -0,0 +1,8 @@
+# for better stability
+StartServers           8
+MinSpareServers                5
+MaxSpareServers                20
+ServerLimit            256
+MaxClients             256
+MaxRequestsPerChild    50
+
similarity index 100%
rename from httpd.conf
rename to httpd/plewww.conf
index cc3a8cd..17b9471 100644 (file)
@@ -69,11 +69,12 @@ rm -rf $RPM_BUILD_ROOT
 
 echo "* PLEWWW: Installing web pages"
 mkdir -p $RPM_BUILD_ROOT/var/www/html
-# let's be conservative and exclude codebase files, though there should not be any
-rsync -a --exclude \*.spec --exclude .svn --exclude CVS --exclude Makefile --exclude httpd.conf ./ $RPM_BUILD_ROOT/var/www/html/
+# exclude codebase just in case
+rsync -a --exclude Makefile --exclude httpd --exclude \*.spec --exclude .svn ./ $RPM_BUILD_ROOT/var/www/html/
 
-echo "* PLEWWW: Installing config for httpd"
-install -D -m 644 httpd.conf $RPM_BUILD_ROOT/etc/httpd/conf.d/plewww.conf
+echo "* PLEWWW: Installing conf files for httpd"
+mkdir -p $RPM_BUILD_ROOT/etc/httpd/conf.d/plewww.conf
+install -D -m 644 httpd/*.conf $RPM_BUILD_ROOT/etc/httpd/conf.d/
 
 %post
 # attempt to perform most of the drupal post-install stuff - assuming version 6.x
@@ -115,7 +116,7 @@ rm -rf $RPM_BUILD_ROOT
 /var/www/html/planetlab
 /var/www/html/googlemap
 /var/www/html/drupal-hacks
-/etc/httpd/conf.d/plewww.conf
+/etc/httpd/conf.d
 
 %files plekit
 /var/www/html/plekit