Make rlimitmem host dependent
authorPeter Palfrader <peter@palfrader.org>
Sat, 5 Sep 2009 15:33:19 +0000 (17:33 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sat, 5 Sep 2009 15:33:19 +0000 (17:33 +0200)
modules/apache2/templates/ressource-limits.erb

index 040313f..9c4ea58 100644 (file)
@@ -4,5 +4,13 @@
 ##
 
 RLimitCPU 180
-RLimitMEM 67108864
+<%=
+case fqdn
+       when "cimarosa.debian.org" then
+               # buildd.debian.org
+               "RLimitMEM 96m"
+       else
+               "RLimitMEM 32m"
+end
+%>
 RLimitNPROC 128