From owner-freebsd-questions@FreeBSD.ORG Mon Mar 2 04:41:13 2009 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 48C4B106566B for ; Mon, 2 Mar 2009 04:41:13 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 094EE8FC0C for ; Mon, 2 Mar 2009 04:41:12 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-196-52-176.dynamic.qsc.de [92.196.52.176]) by mx02.qsc.de (Postfix) with ESMTP id AB7C616C003F; Mon, 2 Mar 2009 05:41:11 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id n224f5QZ001688; Mon, 2 Mar 2009 05:41:05 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Mon, 2 Mar 2009 05:41:05 +0100 From: Polytropon To: RW Message-Id: <20090302054105.21f48c93.freebsd@edvax.de> In-Reply-To: <20090302035324.2b4e4a09@gumby.homeunix.com> References: <798008.8114.qm@web52107.mail.re2.yahoo.com> <20090302035324.2b4e4a09@gumby.homeunix.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: rc.conf and starting scripts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Mar 2009 04:41:13 -0000 Allow me an addition: On Mon, 2 Mar 2009 03:53:24 +0000, RW wrote: > /usr/local/etc/rc.d is the default for local scripts, that's where > package put their scripts, but there are some rules. > > - they should either be proper RCNG scripts or they should end in a .sh > extension I'm not sure if this is valid anymore, but I think it's also neccessary that a *.sh script is chmod +x, or it won't be executed at startup. These scripts are located in /usr/local/etc. The rc-style scripts ("foo { start | stop | restart | status }") are located in the rc.d/ subdirectory, just like in /etc. They usually have a corresponging enable setting ("foo_enable") in /etc/rc.conf or /etc/rc.conf.local (see "man rc.conf"), as well as means to set parameters ("foo_flags" or something specific). -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...