aboutsummaryrefslogtreecommitdiffstats
path: root/config/countryblock/execute.sh
diff options
context:
space:
mode:
Diffstat (limited to 'config/countryblock/execute.sh')
-rwxr-xr-xconfig/countryblock/execute.sh15
1 files changed, 14 insertions, 1 deletions
diff --git a/config/countryblock/execute.sh b/config/countryblock/execute.sh
index c51cf99e..41f6d2cf 100755
--- a/config/countryblock/execute.sh
+++ b/config/countryblock/execute.sh
@@ -1,4 +1,17 @@
#!/bin/sh
+
+#is countryblock running
+#export resultr=`pfctl -s rules | grep -c countryblock`
+#echo $resultr
+#if [ "$resultr" -gt "0" ]; then
+# echo running
+# exit 1
+#else
+# echo not running
+# /usr/bin/logger -s "Countryblock was found not running"
+# echo "Countryblock not running" | /usr/local/bin/php /usr/local/www/packages/countryblock/email_send.php
+#fi
+
pfctl -t countryblock -T kill
sed -i -e '/countryblock/d' /tmp/rules.debug
@@ -68,4 +81,4 @@ mv /tmp/rules.debug /tmp/rules.debug.old
mv /tmp/rules.debug.tmp /tmp/rules.debug
rm errorOUT.txt
-pfctl -o basic -f /tmp/rules.debug > errorOUT.txt 2>&1
+pfctl -o basic -f /tmp/rules.debug > /usr/local/www/packages/countryblock/errorOUT.txt 2>&1