Index: net/zerotier/Makefile =================================================================== --- net/zerotier/Makefile +++ net/zerotier/Makefile @@ -3,7 +3,7 @@ PORTNAME= zerotier DISTVERSION= 1.2.12 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net MAINTAINER= dch@FreeBSD.org Index: net/zerotier/files/zerotier.in =================================================================== --- net/zerotier/files/zerotier.in +++ net/zerotier/files/zerotier.in @@ -36,5 +36,15 @@ %%ZEROTIER_SYSLOG%% \ /usr/local/sbin/${name}-one" +start_postcmd="start_postcmd" + +start_postcmd() { + until /usr/local/bin/zerotier-cli status |egrep -o ONLINE\$; do + warn ${name} waiting for ONLINE status + sleep 2 + done + warn online +} + run_rc_command "$1"