mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 13:32:45 +00:00
Fix post-start check when unbound.conf has moved.
Reported by: phk@ MFC after: 1 week
This commit is contained in:
parent
e5f02c140b
commit
409388cfac
@ -106,7 +106,7 @@ local_unbound_poststart()
|
|||||||
local retry=5
|
local retry=5
|
||||||
|
|
||||||
echo -n "Waiting for nameserver to start..."
|
echo -n "Waiting for nameserver to start..."
|
||||||
until "${command}-control" status | grep -q "is running" ; do
|
until "${command}-control" -c "${local_unbound_config}" status | grep -q "is running" ; do
|
||||||
if [ $((retry -= 1)) -eq 0 ] ; then
|
if [ $((retry -= 1)) -eq 0 ] ; then
|
||||||
echo " giving up"
|
echo " giving up"
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
Reference in New Issue
Block a user