View previous topic :: View next topic |
Author |
Message |
hampton275 Tux's lil' helper
Joined: 06 Sep 2002 Posts: 104
|
Posted: Fri Sep 06, 2002 8:50 pm Post subject: Custom commands and scripts at boot |
|
|
I have a few custon commads and scripts I want to start when the system start up. This would be like rhe rc.local file. I have made a script to assign only one of my two NICs to have dhcpd listen on it, but when I add it with rc-update add dhcp-d default it says ok, but doesn't start at bootup.
Any ideas? |
|
Back to top |
|
|
WarMachine Apprentice
Joined: 15 Jul 2002 Posts: 181
|
Posted: Fri Sep 06, 2002 9:17 pm Post subject: |
|
|
make sure it is executable
or do that and put it at the end of net.ethx script (the net.ethx that loads last) or put an "include" to the file, again at the end of the start part of the net.ethx script
May not be the fanciest way to do it, but it'll work until someone posts something better, I guess. |
|
Back to top |
|
|
Valen Apprentice
Joined: 18 Aug 2002 Posts: 197 Location: Toronto, Ontario, Canada
|
Posted: Fri Sep 06, 2002 9:41 pm Post subject: |
|
|
How about editting the /etc/conf.d/local.start file? AFAIK it is the same as the rc.local file. |
|
Back to top |
|
|
hampton275 Tux's lil' helper
Joined: 06 Sep 2002 Posts: 104
|
Posted: Sat Sep 07, 2002 12:35 am Post subject: |
|
|
Awesome, that's what I was looking for.
Thanks. |
|
Back to top |
|
|
kirkegard n00b
Joined: 03 Sep 2002 Posts: 11
|
Posted: Mon Sep 09, 2002 11:55 pm Post subject: Supressing the output from init.local |
|
|
Does anyone know how to do supress the screen output from programs that I run from local.start? Can I just redirect the output to null? As in, setiathome > null? |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Tue Sep 10, 2002 12:02 am Post subject: Re: Supressing the output from init.local |
|
|
kirkegard wrote: | Does anyone know how to do supress the screen output from programs that I run from local.start? Can I just redirect the output to null? As in, setiathome > null? |
To /dev/null should work. Add a 2>/dev/null if stderr is annoying you also. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
|