From owner-freebsd-questions Mon Dec 27 5:28:29 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dorifer.heim3.tu-clausthal.de (dorifer.heim3.tu-clausthal.de [139.174.243.252]) by hub.freebsd.org (Postfix) with ESMTP id 13E8D14FD0 for ; Mon, 27 Dec 1999 05:28:25 -0800 (PST) (envelope-from olli@dorifer.heim3.tu-clausthal.de) Received: (from olli@localhost) by dorifer.heim3.tu-clausthal.de (8.8.8/8.8.8) id OAA21065 for freebsd-questions@FreeBSD.ORG; Mon, 27 Dec 1999 14:28:18 +0100 (CET) (envelope-from olli) Date: Mon, 27 Dec 1999 14:28:18 +0100 (CET) From: Oliver Fromme Message-Id: <199912271328.OAA21065@dorifer.heim3.tu-clausthal.de> To: freebsd-questions@FreeBSD.ORG Subject: Re: How to I tell nfsd that /etc/exports has changed? Organization: Administration TU Clausthal Reply-To: freebsd-questions@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: TIN [version 1.2 RZTUC(3) PL2] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Alexey N. Dokuchaev wrote in list.freebsd-questions: > On Sun, 26 Dec 1999, Oliver Fromme wrote: > > > > kill -HUP $(cat /var/run/mountd.pid) > > > > After that, you should do "tail /var/log/messages" to see > > whether there were any problems with your /etc/exports file. BTW, all of this is explained in the mountd(8) manpage. Please read it. > Well, it seems that I can simply rerun mountd, and it will reread > /etc/exports -- just about the same effect as HUPing it. > > Any confirmations? No. It will just start another copy of the mountd process, leaving the old one hanging around. Sending a SIGHUP to the daemon (using its PID file) is the "canonical" and most portable way to let it re-read its config file. This works for many other daemons, too. Regards Oliver -- Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany (Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de) "In jedem Stück Kohle wartet ein Diamant auf seine Geburt" (Terry Pratchett) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message