summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2017-07-31 17:32:41 -0300
committerRenato Botelho <renato@netgate.com>2017-07-31 17:32:41 -0300
commitc71df82d1f7d249660cf09c66f91d6aac48a8e21 (patch)
tree6fbd6ccc3808c8dbe0532a3e886c59f81c29bc00 /src/etc
parentf3d3a023c43baa82e627e5f590444365ee84806b (diff)
parent48196bf0b2ba03aae260005b74335af5a2977f31 (diff)
downloadpfsense-c71df82d1f7d249660cf09c66f91d6aac48a8e21.zip
pfsense-c71df82d1f7d249660cf09c66f91d6aac48a8e21.tar.gz
Merge pull request #3762 from PiBa-NL/20170624_gatewayalarm_log
Diffstat (limited to 'src/etc')
-rwxr-xr-xsrc/etc/rc.gateway_alarm13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/etc/rc.gateway_alarm b/src/etc/rc.gateway_alarm
index 2ac516e..96bffed 100755
--- a/src/etc/rc.gateway_alarm
+++ b/src/etc/rc.gateway_alarm
@@ -17,15 +17,28 @@
# limitations under the License.
GW="$1"
+alarm_addr="$2"
+alarm_flag="$3"
+alarm_rtt="$4"
+alarm_rttsd="$5"
+alarm_loss="$6"
if [ -z "$GW" ]; then
exit 1
fi
+echo ">>> Gateway alarm: ${GW} (Addr:${alarm_addr} Alarm:${alarm_flag} RTT:${alarm_rtt}ms RTTsd:${alarm_rttsd}ms Loss:${alarm_loss}%)" | /usr/bin/logger -p daemon.info -i -t rc.gateway_alarm
+
/usr/local/sbin/pfSctl \
-c "service reload dyndns ${GW}" \
-c "service reload ipsecdns" \
-c "service reload openvpn ${GW}" \
-c "filter reload" >/dev/null 2>&1
+# after above signal the check_reload_status process calls the following scripts simultaneously.:
+# - "/etc/rc.dyndns.update", "dyndns=%s"
+# - "/etc/rc.newipsecdns"
+# - "/etc/rc.openvpn", "interface=%s"
+# - "/etc/rc.filter_configure_sync"
+
exit $?
OpenPOWER on IntegriCloud