#!/sbin/openrc-run

depend() {
  need docker net
}

start_pre() {
    while ! ip route | grep -q '^default'; do
        sleep 1
    done
}

command="/usr/bin/tsdns"
command_background=true 
pidfile="/run/${RC_SVCNAME}.pid"
