Revision: 7461
          http://sourceforge.net/p/ipcop/svn/7461
Author:   owes
Date:     2014-04-11 16:18:49 +0000 (Fri, 11 Apr 2014)
Log Message:
-----------
Less swap. If swap is used there is simply not enough memory or the box is used 
wrongly.

Modified Paths:
--------------
    ipcop/trunk/src/installer/arch_defs.h
    ipcop/trunk/src/rc.d/rc.sysinit
    ipcop/trunk/updates/2.1.5/ROOTFILES.i486-2.1.5

Modified: ipcop/trunk/src/installer/arch_defs.h
===================================================================
--- ipcop/trunk/src/installer/arch_defs.h       2014-04-11 16:16:33 UTC (rev 
7460)
+++ ipcop/trunk/src/installer/arch_defs.h       2014-04-11 16:18:49 UTC (rev 
7461)
@@ -17,7 +17,7 @@
  * You should have received a copy of the GNU General Public License
  * along with IPCop.  If not, see <http://www.gnu.org/licenses/>.
  *
- * (c) 2007-2013, the IPCop team
+ * (c) 2007-2014, the IPCop team
  *
  * $Id$
  * 
@@ -64,7 +64,7 @@
 #define ROOT_MINIMUM    256
 #define ROOT_MAXIMUM    512
 #define SWAP_MINIMUM     32
-#define SWAP_MAXIMUM    128
+#define SWAP_MAXIMUM     64
 #define LOGCOMPRESSED    64
 
 

Modified: ipcop/trunk/src/rc.d/rc.sysinit
===================================================================
--- ipcop/trunk/src/rc.d/rc.sysinit     2014-04-11 16:16:33 UTC (rev 7460)
+++ ipcop/trunk/src/rc.d/rc.sysinit     2014-04-11 16:18:49 UTC (rev 7461)
@@ -200,10 +200,10 @@
 
 if [ -e /swapfile ]; then
     SWAPSIZE=`/usr/bin/stat -c%s /swapfile`
-    if [ $SWAPSIZE -gt 140000000 ]; then
+    if [ $SWAPSIZE -gt 70000000 ]; then
         # During 2.1 development max swap was decreased. Adjust older 
installations.
         echo -ne "Shrinking swapfile.  This may take several minutes ... "
-        /bin/dd if=/dev/zero of=/swapfile bs=1024k count=128 2>/dev/null
+        /bin/dd if=/dev/zero of=/swapfile bs=1024k count=64 2>/dev/null
         test_ok
         echo -ne "Set up swapfile ... "
         /sbin/mkswap /swapfile >/dev/null

Modified: ipcop/trunk/updates/2.1.5/ROOTFILES.i486-2.1.5
===================================================================
--- ipcop/trunk/updates/2.1.5/ROOTFILES.i486-2.1.5      2014-04-11 16:16:33 UTC 
(rev 7460)
+++ ipcop/trunk/updates/2.1.5/ROOTFILES.i486-2.1.5      2014-04-11 16:18:49 UTC 
(rev 7461)
@@ -1,4 +1,5 @@
 ## please place IPCop files first, then packages sorted by alphabetical order
+/etc/rc.d/rc.sysinit
 /home/httpd/cgi-bin/ddns.cgi
 /home/httpd/cgi-bin/index.cgi
 /home/httpd/cgi-bin/iptablesgui.cgi

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn

Reply via email to