Date: Thu, 13 May 2004 08:36:39 +0930 From: Tim Aslat <tim@spyderweb.com.au> To: "Chad Leigh -- Shire.Net LLC" <chad@shire.net> Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 5 rc.d scripts and /usr/local/etc/rc.d Message-ID: <20040513083639.512f9908@bofh.spyderweb.com.au> In-Reply-To: <67797B99-A468-11D8-A0B4-003065A70D30@shire.net> References: <67797B99-A468-11D8-A0B4-003065A70D30@shire.net>
next in thread | previous in thread | raw e-mail | index | archive | help
In the immortal words of "Chad Leigh -- Shire.Net LLC" <chad@shire.net>... > "The best way to handle rc.local, however, is to separate it > out into rc.d/ style scripts and place them under > /usr/local/etc/rc.d/." That's right > So I created an rc.d style script for my own service and stuck it in > /usr/local/etc/rc.d/. It does not have a .sh on the end as it should > run in a subshell as detailed in the rc man page. I also added There's your problem, all scripts in rc.d must have a .sh extension or they will be ignored (unless included from another script/program) rename to myscript.sh and it will work Cheers Tim -- Tim Aslat <tim@spyderweb.com.au> Spyderweb Consulting http://www.spyderweb.com.au Phone: +61 0401088479
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040513083639.512f9908>