Hi Robert,

On Sun, Dec 27, 2009 at 00:08, Robert Edmonds <edmo...@debian.org> wrote:
> Rick Moen wrote:
>> When the nameserver is ready to serve it should
>> do the equivalent of this sh script:
>>
>>    NAME="unbound"
>>    echo "nameserver 127.0.0.1" | /sbin/resolvconf -a lo."$NAME"
>>
>> and when it is no longer ready to serve it should do:
>>
>>    /sbin/resolvconf -d lo."$NAME"
>
> hm, as resolvconf is Priority: optional, i suppose the hypothetical sh
> script should instead do something like:
>
>    NAME="unbound"
>    if [ -x "/sbin/resolvconf" ]; then
>        echo "nameserver 127.0.0.1" | /sbin/resolvconf -a lo."$NAME"
>    fi

add '[ "X$RESOLVCONF" != "Xno" ] &&' here and set RESOLVCONF=yes (or
no) to /etc/default/unbound

I think, you don't have to cover all the cases, just the most simple one.

Ondrej
-- 
Ondřej Surý <ond...@sury.org>
http://blog.rfc1925.org/



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to