From owner-freebsd-questions@FreeBSD.ORG Tue Jun 24 18:17:26 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB33D106567A for ; Tue, 24 Jun 2008 18:17:26 +0000 (UTC) (envelope-from nicolas@nicoelro.net) Received: from mail.nicoelro.net (helm.nicoelro.net [87.98.216.147]) by mx1.freebsd.org (Postfix) with ESMTP id 988248FC12 for ; Tue, 24 Jun 2008 18:17:26 +0000 (UTC) (envelope-from nicolas@nicoelro.net) Received: by mail.nicoelro.net (Postfix, from userid 58) id EA9BE798EA; Tue, 24 Jun 2008 20:17:24 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on helm.nicoelro.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=6.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from orthanc (ALyon-253-1-62-204.w86-193.abo.wanadoo.fr [86.193.205.204]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: nicolas@nicoelro.net) by mail.nicoelro.net (Postfix) with ESMTP id 0C1C1798D2 for ; Tue, 24 Jun 2008 20:17:23 +0200 (CEST) Date: Tue, 24 Jun 2008 20:17:20 +0200 From: Nicolas Letellier To: FreeBSD Questions Message-Id: <20080624201720.e90b1a07.nicolas@nicoelro.net> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.10.14; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: restart named in a cron X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jun 2008 18:17:26 -0000 Hi. I want to restart named in a script executed by a cron. My script is: #!/bin/sh # verify named conf and restart it /usr/sbin/named-checkconf if [ ! $? -eq 0 ]; then echo "Errors when verifying named configuration" exit 1 else /etc/rc.d/named restart > /dev/null fi # Ok, it's done exit 0 However, the cron returns some errors: umount: not found mtree: not found umount: not found mount: not found /etc/rc.d/named: WARNING: devfs_domount(): Unable to mount devfs on /var/named/dev devfs: not found devfs: not found I can restart named manually, but not with a cron. Do you have an idea to solve this problem? Why could I restart it manually and not with a cron? Thanks! -- -Nicolas.