|
Home > Archive > Linux/Unix > July 2001 > Why not rc.local?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| ccieToBe 2001-07-29, 10:16 pm |
| From the FreeBSD Handbook:
"Some additional system services may not be covered by the toggles in /etc/rc.conf. These are traditionally enabled by placing the command(s) to invoke them in /etc/rc.local. As of FreeBSD 3.1 there is no default /etc/rc.local; if it is created by the administrator it will however be honored in the normal fashion. Note that rc.local is generally regarded as the location of last resort; if there is a better place to start a service, do it there."
http://www.freebsd.org/doc/en_US.IS...g-services.html
Why is this? In most cases it seems a lot more convienient to place a command in /etc/rc.local then creating a startup script in /usr/local/rc.d/. Is there some security or performance reason, or is this just for the sake of uniformity? | |
|
| quote: Originally posted by ccieToBe
From the FreeBSD Handbook:
"Some additional system services may not be covered by the toggles in /etc/rc.conf. These are traditionally enabled by placing the command(s) to invoke them in /etc/rc.local. As of FreeBSD 3.1 there is no default /etc/rc.local; if it is created by the administrator it will however be honored in the normal fashion. Note that rc.local is generally regarded as the location of last resort; if there is a better place to start a service, do it there."
http://www.freebsd.org/doc/en_US.IS...g-services.html
Why is this? In most cases it seems a lot more convienient to place a command in /etc/rc.local then creating a startup script in /usr/local/rc.d/. Is there some security or performance reason, or is this just for the sake of uniformity?
BSD traditionally puts most of the services in startup scripts. Why, I don't know, since I would do it the way you seem to prefer. Traditionally I guess it is a way of finding where everything is, but I don't tend to put items in startup scripts unless I think they need to be running all of the time. If you don't like what the docs suggest, try doing it your way, and make a note in your personal docs that you did so. That way if you need to ts the box later on, you won't be looking in a place where you will never find it.
BTW, I will probably be spending more time now at freak, Yeti, and Peter's site in the future. Am having probs keeping up with all of the fora I frequent. On a more interesting note, here is a URl that freak posted at his site:
http://hackingtruths.box.sk/
Anybody into security ought to have a look at this. | |
| ccieToBe 2001-07-31, 4:38 pm |
| I'll have to check out that site sometime. I hope you continue to post on Examnotes on a regular basis, even if it's not as often as you use to. I'm about a week away from finishing the NT to FreeBSD migration at work, so I'll post on my experiences with that as soon as NT's banished.
That link you posted looks good. |
|
|
|
|