Date: Mon, 24 Sep 2001 10:34:56 -0700 From: "David O'Brien" <obrien@freebsd.org> To: Andrea Campi <andrea@webcom.it> Cc: Hajimu UMEMOTO <ume@mahoroba.org>, cvs-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/etc rc Message-ID: <20010924103456.C9322@dragon.nuxi.com> In-Reply-To: <20010924192019.A22181@webcom.it>; from andrea@webcom.it on Mon, Sep 24, 2001 at 07:20:19PM %2B0200 References: <200109240303.f8O33qB64939@freefall.freebsd.org> <20010924175857.A21878@webcom.it> <20010925.015110.21914758.ume@mahoroba.org> <20010924192019.A22181@webcom.it>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 24, 2001 at 07:20:19PM +0200, Andrea Campi wrote: > I am not opposing this patch, just asking for the reasoning behind it, warning > that it may break POLA, and asking for at least an UPDATING entry and/or no > MFC. For me it was a POLA that after I did ``vi /usr/local/etc/rc.d/foo.sh'' the script barfed with "Bad interpreter" on the next reboot. It took me a while to realize what in the world was wrong. /etc/rc uses `sh' to run ${diskless_mount}, /etc/rc.devfs, and /etc/rc.local (which /usr/local/etc/rc.d/ is the 2nd generation of). Also note that explicitly /usr/local/etc/rc.d/*.sh is run, not `*', but `*.sh'. This is so that you can move scripts out of the way. The fact that `chmod -x' worked, was just an unforeseen side affect. -- -- David (obrien@FreeBSD.org) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010924103456.C9322>