summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
authorPiBa-NL <pba_2k3@yahoo.com>2017-06-24 17:36:22 +0200
committerPiBa-NL <pba_2k3@yahoo.com>2017-06-24 19:25:19 +0200
commit48196bf0b2ba03aae260005b74335af5a2977f31 (patch)
treee8fced50ba4c19cd639d8bd80ff8e6d4e775e4d6 /src/etc
parent05ae852482def5fce3f87bc2d61f07de53cec39a (diff)
downloadpfsense-48196bf0b2ba03aae260005b74335af5a2977f31.zip
pfsense-48196bf0b2ba03aae260005b74335af5a2977f31.tar.gz
rc.gateway_alarm, add syslog message that shows that a alarm was raised/cleared and what the parameters were
This helps clarify why sometimes services are restarted when reading through the syslogs.
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