26 lines
391 B
Plaintext
Executable File
26 lines
391 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
depend() {
|
|
need docker net
|
|
}
|
|
|
|
start_pre() {
|
|
ebegin "Waiting for network"
|
|
|
|
timeout=30
|
|
|
|
while [ $timeout -gt 0 ]; do
|
|
ip route | grep -q default && break
|
|
sleep 1
|
|
timeout=$((timeout-1))
|
|
done
|
|
|
|
ip route | grep -q default || return 1
|
|
|
|
eend 0
|
|
}
|
|
|
|
command="/usr/bin/tsdns"
|
|
command_background=true
|
|
pidfile="/run/${RC_SVCNAME}.pid"
|