Date: Mon, 2 Mar 2009 05:41:05 +0100 From: Polytropon <freebsd@edvax.de> To: RW <rwmaillists@googlemail.com> Cc: freebsd-questions@freebsd.org Subject: Re: rc.conf and starting scripts 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>
next in thread | previous in thread | raw e-mail | index | archive | help
Allow me an addition: On Mon, 2 Mar 2009 03:53:24 +0000, RW <rwmaillists@googlemail.com> 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, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090302054105.21f48c93.freebsd>