summaryrefslogtreecommitdiffstats
path: root/usr/local/sbin
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 /usr/local/sbin
parent8fc63cd85d228fee1480f2fdda0ab4c5dd14e051 (diff)
downloadpfsense-b1d7bc0178c3ab96273cfe4266eb5d168fcef49c.zip
pfsense-b1d7bc0178c3ab96273cfe4266eb5d168fcef49c.tar.gz
Reset SLBD every 5 hours to avoid 100% cpu utilization Ticket #1316
Diffstat (limited to 'usr/local/sbin')
-rwxr-xr-xusr/local/sbin/reset_slbd.sh7
1 files changed, 7 insertions, 0 deletions
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