From owner-freebsd-ports@FreeBSD.ORG Tue Sep 2 10:25:23 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 0C0DC16A4BF for ; Tue, 2 Sep 2003 10:25:23 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DF3A43FBD for ; Tue, 2 Sep 2003 10:25:21 -0700 (PDT) (envelope-from andreas@klemm.apsfilter.org) Received: from srv1.cosmo-project.de (localhost [IPv6:::1]) by srv1.cosmo-project.de (8.12.9/8.12.9) with ESMTP id h82HPHQw016193 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Tue, 2 Sep 2003 19:25:18 +0200 (CEST) (envelope-from andreas@klemm.apsfilter.org) Received: (from uucp@localhost)h82HPGrD016192; Tue, 2 Sep 2003 19:25:16 +0200 (CEST) (envelope-from andreas@klemm.apsfilter.org) Received: from titan.klemm.apsfilter.org (localhost.klemm.apsfilter.org [127.0.0.1]) by klemm.apsfilter.org (8.12.9/8.12.9) with ESMTP id h82HN2jI003894; Tue, 2 Sep 2003 19:23:02 +0200 (CEST) (envelope-from andreas@titan.klemm.apsfilter.org) Received: (from andreas@localhost) by titan.klemm.apsfilter.org (8.12.9/8.12.9/Submit) id h82HN1oq003893; Tue, 2 Sep 2003 19:23:01 +0200 (CEST) Date: Tue, 2 Sep 2003 19:23:01 +0200 From: Andreas Klemm To: stan Message-ID: <20030902172301.GA3812@titan.klemm.apsfilter.org> References: <20030901161847.GA4451@titan.klemm.apsfilter.org> <3F53E1DE.1080800@ciam.ru> <20030902045110.GA14187@titan.klemm.apsfilter.org> <20030902155848.GA21140@teddy.fas.com> <20030902164941.GA3147@titan.klemm.apsfilter.org> <20030902165906.GA22637@teddy.fas.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030902165906.GA22637@teddy.fas.com> X-Operating-System: FreeBSD 5.1-CURRENT X-Disclaimer: A free society is one where it is safe to be unpopular User-Agent: Mutt/1.5.4i cc: ports@FreeBSD.org Subject: Re: start/stop script woes: ./squid.sh: Cannot determine the PREFIX 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: Tue, 02 Sep 2003 17:25:23 -0000 On Tue, Sep 02, 2003 at 12:59:06PM -0400, stan wrote: > On Tue, Sep 02, 2003 at 06:49:41PM +0200, Andreas Klemm wrote: > > Well, I think we should keep one scheme, not two. > > Currently there exist two methods to prevent startup of > > applications after reboot: > > a) no execute bit > > b) installed as xxx.sh.something > > Right. > > > > > Two are too much. I think the execute bit should be set and > > scripts should be installed as xxx.sh.sample. > > > I, also agree that 2 are too many. What I was saying is that I prefer a > over b. Supposed you put $PREFIX/etc/rc.d into root's search path or if you are in the directory $PREFIX/etc/rc.d then b) would have the advantage, that you can simply use the start/stop script even if its disabled (by name xxx.sh.sample) for the boot process. xxx.sh.sample (start|stop|restart) would work for the first tests. I think this is more comfortable without loosing the level of control you want after having installed the application port freshly. Andreas /// -- Andreas Klemm - Powered by FreeBSD 5.1-CURRENT Need a magic printfilter today ? -> http://www.apsfilter.org/