diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-06-27 19:37:11 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-06-27 19:37:11 +0000 |
commit | b1d7bc0178c3ab96273cfe4266eb5d168fcef49c (patch) | |
tree | 11dbfd4829c8eee5c391190c6b6164ff30901d44 /usr/local/sbin | |
parent | 8fc63cd85d228fee1480f2fdda0ab4c5dd14e051 (diff) | |
download | pfsense-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-x | usr/local/sbin/reset_slbd.sh | 7 |
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 |