From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 14:48:13 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 02A4016A4CE for ; Tue, 30 Dec 2003 14:48:13 -0800 (PST) Received: from rdsnet.ro (smtp.rdsnet.ro [62.231.74.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1486E43D41 for ; Tue, 30 Dec 2003 14:48:11 -0800 (PST) (envelope-from itetcu@apropo.ro) Received: (qmail 28351 invoked from network); 30 Dec 2003 22:48:09 -0000 Received: from unknown (HELO it.buh.cameradicommercio.ro) (81.196.25.19) by mail.rdsnet.ro with SMTP; 30 Dec 2003 22:48:09 -0000 Date: Wed, 31 Dec 2003 00:49:33 +0200 From: Ion-Mihai Tetcu To: Peter Risdon Message-Id: <20031231004933.00b76790@it.buh.cameradicommercio.ro> In-Reply-To: <3FF15920.4070201@circlesquared.com> References: <20031230034953.36866d74@it.buh.cameradicommercio.ro> <200312300225.hBU2PQsi030000@smtp.doruk.net.tr> <20031230043149.73c3dddd@it.buh.cameradicommercio.ro> <3FF15920.4070201@circlesquared.com> X-Mailer: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i386-portbld-freebsd5.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: djbdns X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2003 22:48:13 -0000 On Tue, 30 Dec 2003 10:53:20 +0000 Peter Risdon wrote: > Ion-Mihai Tetcu wrote: > > >Take a look at /usr/local/etc/rc.d/svscan.sh.sample > > > >1. SVDIR=/var/service/ - so svscan will look at /var/service and not > >/service; either do: > >a) what is suggested and use /var/services (e.g. ln -s /etc/dnscache > >/var/service) or > >b) change SVDIR=/var/service/ to SVDIR=/service/ > > > >I would use a); also note that creating the log file in /etc/dnscache > >is IMHO a bad idea. > > > > > I'm not disagreeing, but the original post complained of something > being wrong in some documentation. Yes, the idea of logging to / is bad at least for 2 reasons: filling up /, which is usually small and, in case of a crash, increasing the chances to have a trashed / > Most reference and tutorial pages for > djbdns and other djb stuff like qmail assume a /service directory, > rather than /var/service. I've always loved the explanation "Portability. With /service, your program works the same way on every system: Linux, BSD, Solaris, etc." (http://cr.yp.to/daemontools/faq/create.html#run); using this logic every program should install in his own directory in / > Using /var/service does seem more logical, but > can be a source of confusion, especially if people are copying and > pasting commands from online instructions, something the various > references often suggest. Perhaps I should suggest to the maintainer adding a pkg-message saying that, by default, we're using /var/services ? > >2. > ># cp /usr/local/etc/rc.d/svscan.sh.sample > >/usr/local/etc/rc.d/svscan.sh# /usr/local/etc/rc.d/svscan.sh start > ># svstatus /var/services/dnscache > ># svstatus /var/services/dnscache/log > ># dnsip www.freebsd.org > > > > > Shouldn't it be: > > # svstat /var/service/dnscache Of course. -- IOnut Unregistered ;) FreeBSD user