Revision 5affb137
Added by Vladimir Voskoboynikov over 4 years ago
src/etc/rc.gateway_alarm | ||
---|---|---|
37 | 37 |
|
38 | 38 |
echo ">>> Gateway alarm: ${GW} (Addr:${alarm_addr} Alarm:${alarm_flag} RTT:$( print_rtt ${alarm_rtt} ) RTTsd:$( print_rtt ${alarm_rttsd} ) Loss:${alarm_loss}%)" | /usr/bin/logger -p daemon.info -i -t rc.gateway_alarm |
39 | 39 |
|
40 |
# Save the gateway alarm readings so they can be read by the scripts below |
|
41 |
echo "${GW} ${alarm_rtt} ${alarm_rttsd} ${alarm_loss}" > "/tmp/.alarm.${GW}" |
|
42 |
|
|
40 | 43 |
/usr/local/sbin/pfSctl \ |
41 | 44 |
-c "service reload dyndns ${GW}" \ |
42 | 45 |
-c "service reload ipsecdns" \ |
Also available in: Unified diff
Prevent possible race condition, fixes #9450
Instead of calling get_dpinger_status() again in the code handling dpinger
alarms, save the original alarm status in rc.gateway_alarm to a file, then
read the status from the file.