From owner-freebsd-stable@FreeBSD.ORG Mon May 28 11:29:50 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 09E38106564A for ; Mon, 28 May 2012 11:29:50 +0000 (UTC) (envelope-from gondim@bsdinfo.com.br) Received: from zeus.linuxinfo.com.br (zeus.linuxinfo.com.br [186.193.48.13]) by mx1.freebsd.org (Postfix) with ESMTP id B40848FC16 for ; Mon, 28 May 2012 11:29:49 +0000 (UTC) Received: from zeus.linuxinfo.com.br (zeus.linuxinfo.com.br [127.0.0.1]) by zeus.linuxinfo.com.br (Postfix) with ESMTP id 2EC8D466A434 for ; Mon, 28 May 2012 08:20:23 -0300 (BRT) X-Virus-Scanned: amavisd-new at zeus.linuxinfo.com.br Received: from zeus.linuxinfo.com.br ([127.0.0.1]) by zeus.linuxinfo.com.br (zeus.linuxinfo.com.br [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Lxn2JNjiemYp for ; Mon, 28 May 2012 08:20:17 -0300 (BRT) Received: from [127.0.0.1] (unknown [186.193.48.8]) by zeus.linuxinfo.com.br (Postfix) with ESMTPSA id E2ACB466A426 for ; Mon, 28 May 2012 08:20:17 -0300 (BRT) Message-ID: <4FC35F53.9030600@bsdinfo.com.br> Date: Mon, 28 May 2012 08:19:47 -0300 From: Marcelo Gondim User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: <4FC33EEC.4040703@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Named Error X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 May 2012 11:29:50 -0000 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 :)