#!/bin/ksh
#
# ogmaprotect-gwmond — Phase 9.R1 multi-WAN liveness probe (socket-less).
# Probes each monitored gateway's anchors, writes the 0600 gw-state file, and
# signals rtd (gateway_state_reapply) on a liveness edge. Start AFTER rtd.

daemon="/usr/local/sbin/ogmaprotect-gwmond"
# Daemons run in foreground; rc.subr must background them for rcctl.
rc_bg=YES

. /etc/rc.d/rc.subr

rc_cmd $1
