Results 1 to 1 of 1
I'm looking to bypass Squid incase of failure could I get some help with this script?
Code:
#!/bin/sh
while [ 1 ]; do
TEST_SQUID=`netstat -a | grep -c https
if ...
- 09-15-2004 #1Just Joined!
- Join Date
- Sep 2004
- Posts
- 5
http and https pass through
I'm looking to bypass Squid incase of failure could I get some help with this script?
Also need to combine these somehow. Any help?Code:#!/bin/sh while [ 1 ]; do TEST_SQUID=`netstat -a | grep -c https if [ "$TEST_SQUID" -gt 0 ]; then something here that starts forwarding https (iptables or xinetd)? fi sleep 60 done and other #!/bin/sh while [ 1 ]; do TEST_SQUID=`netstat -a | grep -c :httpd if [ "$TEST_SQUID" -gt 2 ]; then something here that starts forwarding https (iptables or xinetd)? fi sleep 60 done
[/code]


Reply With Quote
