#!/bin/sh
# Readiness check for s6-notifyoncheck: keepalived has read its configuration
# and forked its VRRP or checker child, where keepalived.service gets READY=1.
pid=$(s6-svstat -o pid .) || exit 1
exec pgrep -P "$pid" -x keepalived >/dev/null
