From owner-freebsd-ports@FreeBSD.ORG Wed Apr 2 22:29:30 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 81DE837B401 for ; Wed, 2 Apr 2003 22:29:30 -0800 (PST) Received: from smtp.netli.com (ip2-pal-focal.netli.com [66.243.52.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7538F43FB1 for ; Wed, 2 Apr 2003 22:29:29 -0800 (PST) (envelope-from vlm@netli.com) Received: (qmail 32682 invoked by uid 84); 3 Apr 2003 06:29:29 -0000 Received: from vlm@netli.com by l3-1 with qmail-scanner-0.96 (uvscan: v4.1.40/v4121. . Clean. Processed in 0.126664 secs); 03 Apr 2003 06:29:29 -0000 Received: from unknown (HELO netli.com) (172.17.1.38) by mx01-pal-lan.netli.lan with SMTP; 3 Apr 2003 06:29:29 -0000 Message-ID: <3E8BD4B3.8010609@netli.com> Date: Wed, 02 Apr 2003 22:29:07 -0800 From: Lev Walkin Organization: Netli, Inc. User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2.1) Gecko/20030125 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: Andreas Klemm References: <20030402080721.GA78889@titan.klemm.apsfilter.org> <3E8B762C.1060508@netli.com> <20030403054853.GB3051@titan.klemm.apsfilter.org> In-Reply-To: <20030403054853.GB3051@titan.klemm.apsfilter.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: ports@FreeBSD.org Subject: Re: ipcad start/stop script X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2003 06:29:30 -0000 Andreas Klemm wrote: > On Wed, Apr 02, 2003 at 03:45:48PM -0800, Lev Walkin wrote: > >>what about >>echo 'ipcad -rds 2>/dev/null && echo ipcad' >> /etc/rc.local >>seems much simpler. > > > I used an existing start stop script as template. > > The test statements take care, that it only runs, > if the ipcad binary is there to avoid unnecessary > error messages and that it will be started only with > a valid config. my case avoids unnecessary error messages too :) > Since your port doesn't install a standard config file > PREFIX/etc/ipcad.conf, somebody who installs ipcad > package for later usage would get failures after reboot > because of the missing config file. yes, it is intentional to not to override a possibly existing one. -- Lev Walkin vlm@netli.com