From owner-freebsd-stable@FreeBSD.ORG Mon May 28 09:41:06 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by hub.freebsd.org (Postfix) with ESMTP id A9C12106566B for ; Mon, 28 May 2012 09:41:06 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from opti.dougb.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 43A1914EED3; Mon, 28 May 2012 09:41:06 +0000 (UTC) Message-ID: <4FC34831.2070001@FreeBSD.org> Date: Mon, 28 May 2012 02:41:05 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120506 Thunderbird/12.0.1 MIME-Version: 1.0 To: prabhpal@digital-infotech.net References: <4FC33EEC.4040703@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.5pre OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org 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 09:41:06 -0000 On 05/28/2012 02:36, Shiv. NK wrote: > >> 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 Then it's definitely a PATH problem. Use the service method described above and the problem will go away. FYI, you almost certainly do not need to restart named via a cron job. You probably want to write to bind-users@isc.org and describe what you're trying to accomplish, and they can give you better suggestions on how to do it. Doug -- This .signature sanitized for your protection