Revert "use ping for connectivity checkers"
This reverts commit 29ee6c0bd5.
This commit is contained in:
@@ -6,22 +6,6 @@ output_log="/data/auth-server.log"
|
||||
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
|
||||
@@ -4,22 +4,6 @@ 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"
|
||||
|
||||
Reference in New Issue
Block a user