| Author |
starting DHCPCD upon boot
|
|
|
| I'm running RH 8.0. Does anyone know the best way to start DHCPCD automatically upon boot? Currently, i have to run the command manually: #dhcpcd start. I'm thinking of inserting a line in rc.local like: /usr/local/sbin/dhcpcd
I'm also thinking of doing a symbolic link to /usr/local/sbin/dhcpcd. Right now i don't see dhcpcd in /etc/rc.d/init.d/ dir. How do I get it so that it appears in this directory.
What's the best way to do this?
Please let me know any source on RH boot process so I can read up on it.
Thanks | |
| Boulware5 2002-12-08, 6:54 pm |
| This is where the distros become different. In Slackware I'm used to chmod u+x the rc file in /etc/rc.d and it loads it during every boot. There's probably other ways, but you could probably get away with adding the line /usr/local/sbin/dhcpcd to a startup file such as .bash_profile. | |
| ccieToBe 2002-12-08, 7:59 pm |
| The simplest way would be to add a line to rc.local:
/usr/local/sbin/dhcpd arguments
I assume you mean dhcpd? | |
| Boulware5 2002-12-08, 8:06 pm |
| CCIE, out of curiosity, my way would work too right? | |
| ccieToBe 2002-12-08, 9:21 pm |
| Putting an executable script in rc.d is actually preferable, but it can also be a lot more complicated if you have to write it yourself.
Assuming we're talking about dhcpd, I wouldn't recommend starting it from .bash_profile or any other login script. That would mean you'd have to login to the local machine to start the service. That is a good technique to use if you want to start something like kde though. | |
| alany 2002-12-09, 11:35 pm |
| okay, here's a quick solution, although not the best:
insert the following line(s) in your /etc/rc.local
#/usr/local/sbin/dhcpd eth0
#/usr/local/sbin/dhcpd eth1
this should boot dhcpcd automatically.
i'm still trying to figure how to get dhcpcd in /etc/rc.d/init.d/ directory.
BTW, i meshed my linux laptops in a wireless lan network... Linux rocks. it's so cool. | |
| ccieToBe 2002-12-10, 10:24 am |
| Go to linuxdoc.org and look for docs on creating startup scripts. |
|
|
|