mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Reset SLBD every 5 hours to avoid 100% cpu utilization
This commit is contained in:
parent
8fc63cd85d
commit
b1d7bc0178
@ -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>
|
||||
|
||||
@ -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>
|
||||
<!--
|
||||
|
||||
7
usr/local/sbin/reset_slbd.sh
Executable file
7
usr/local/sbin/reset_slbd.sh
Executable file
@ -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
|
||||
Loading…
Reference in New Issue
Block a user