I think I asked this question sometime ago, but I can't find the answer when searching for it. Anyway...
First, I think I know the difference for startup shell scripts located in /etc/rc.d and /usr/local/etc/rc.d. The former is for system scripts while the latter is for user-installed scripts. So, therefore, we should always place scripts in the latter, whether it is for the host or inside a jail. (Let me know me if incorrect...)
Here's my real question: Why do I need to specifically change the name to ".sh" for some scripts to make it run? What's the difference for scripts without filename extensions and those that has to append ".sh" to make it run?
First, I think I know the difference for startup shell scripts located in /etc/rc.d and /usr/local/etc/rc.d. The former is for system scripts while the latter is for user-installed scripts. So, therefore, we should always place scripts in the latter, whether it is for the host or inside a jail. (Let me know me if incorrect...)
Here's my real question: Why do I need to specifically change the name to ".sh" for some scripts to make it run? What's the difference for scripts without filename extensions and those that has to append ".sh" to make it run?