summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-06-27 19:37:11 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-06-27 19:37:11 +0000
commitb1d7bc0178c3ab96273cfe4266eb5d168fcef49c (patch)
tree11dbfd4829c8eee5c391190c6b6164ff30901d44
parent8fc63cd85d228fee1480f2fdda0ab4c5dd14e051 (diff)
downloadpfsense-b1d7bc0178c3ab96273cfe4266eb5d168fcef49c.zip
pfsense-b1d7bc0178c3ab96273cfe4266eb5d168fcef49c.tar.gz
Reset SLBD every 5 hours to avoid 100% cpu utilization Ticket #1316
-rw-r--r--cf/conf/config.xml11
-rw-r--r--conf.default/config.xml11
-rwxr-xr-xusr/local/sbin/reset_slbd.sh7
3 files changed, 27 insertions, 2 deletions
diff --git a/cf/conf/config.xml b/cf/conf/config.xml
index 7d749c0..b369985 100644
--- a/cf/conf/config.xml
+++ b/cf/conf/config.xml
@@ -34,7 +34,7 @@
<desc>Disable sending IPv6 redirects</desc>
<tunable>net.inet6.ip6.redirect</tunable>
<value>0</value>
- </item>
+ </item>
<item>
<desc>Generate SYN cookies for outbound SYN-ACK packets</desc>
<tunable>net.inet.tcp.syncookies</tunable>
@@ -697,6 +697,15 @@
<who>root</who>
<command>/etc/ping_hosts.sh</command>
</item>
+ <item>
+ <minute>*/300</minute>
+ <hour>*</hour>
+ <mday>*</mday>
+ <month>*</month>
+ <wday>*</wday>
+ <who>root</who>
+ <command>/usr/local/bin/reset_slbd.sh</command>
+ </item>
</cron>
<installedpackages>
</installedpackages>
diff --git a/conf.default/config.xml b/conf.default/config.xml
index 8c03c3a..ba35c8f 100644
--- a/conf.default/config.xml
+++ b/conf.default/config.xml
@@ -34,7 +34,7 @@
<desc>Disable sending IPv6 redirects</desc>
<tunable>net.inet6.ip6.redirect</tunable>
<value>0</value>
- </item>
+ </item>
<item>
<desc>Generate SYN cookies for outbound SYN-ACK packets</desc>
<tunable>net.inet.tcp.syncookies</tunable>
@@ -688,6 +688,15 @@
<who>root</who>
<command>/etc/ping_hosts.sh</command>
</item>
+ <item>
+ <minute>*/300</minute>
+ <hour>*</hour>
+ <mday>*</mday>
+ <month>*</month>
+ <wday>*</wday>
+ <who>root</who>
+ <command>/usr/local/bin/reset_slbd.sh</command>
+ </item>
</cron>
<wol>
<!--
diff --git a/usr/local/sbin/reset_slbd.sh b/usr/local/sbin/reset_slbd.sh
new file mode 100755
index 0000000..b527aa4
--- /dev/null
+++ b/usr/local/sbin/reset_slbd.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [ `ps awux | grep slbd | wc -l` -gt 0 ]; then
+ killall slbd
+ killall slbd
+ /usr/local/sbin/slbd -c/var/etc/slbd.conf -r5000
+fi
OpenPOWER on IntegriCloud