Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2012 08:19:47 -0300
From:      Marcelo Gondim <gondim@bsdinfo.com.br>
To:        freebsd-stable@freebsd.org
Subject:   Re: Named Error
Message-ID:  <4FC35F53.9030600@bsdinfo.com.br>
In-Reply-To: <c85ef9ec8d1d4ca326985504ba991803.squirrel@mail.digital-infotech.net>
References:  <efce1d545da82ba1a97b50700410ed3f.squirrel@mail.digital-infotech.net> <4FC33EEC.4040703@FreeBSD.org> <c85ef9ec8d1d4ca326985504ba991803.squirrel@mail.digital-infotech.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Em 28/05/2012 06:36, Shiv. NK escreveu:
>> On 05/28/2012 01:28, Shiv. NK wrote:
>>> eval: mtree: not found
>>> eval: mount: not found
>> I assume you're typing '/etc/rc.d/named restart'. If so, there appears
>> to be something wrong with your PATH in that shell.
>>
>> Try doing 'service named restart' instead.
>>
>> Doug
> Dear D. Barton,
>
> thanks for your response, i forgot to tell that the error i reported above
> is generated when named is restarted using bash script through cron.
>
> But if i manually restart from terminal window, both commands works just
> fine. without any error
>
> /etc/rc.d/named restart
> service named restart
>
> i appreciate your kind assistance.

Hi Shiv,

Try to include this path in your /etc/crontab

PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin

Its works for me when I use bash scripts in cron.  :)

Sorry my english :)





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FC35F53.9030600>