Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Custom commands and scripts at boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
hampton275
Tux's lil' helper
Tux's lil' helper


Joined: 06 Sep 2002
Posts: 104

PostPosted: Fri Sep 06, 2002 8:50 pm    Post subject: Custom commands and scripts at boot Reply with quote

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
View user's profile Send private message
WarMachine
Apprentice
Apprentice


Joined: 15 Jul 2002
Posts: 181

PostPosted: Fri Sep 06, 2002 9:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Valen
Apprentice
Apprentice


Joined: 18 Aug 2002
Posts: 197
Location: Toronto, Ontario, Canada

PostPosted: Fri Sep 06, 2002 9:41 pm    Post subject: Reply with quote

How about editting the /etc/conf.d/local.start file? AFAIK it is the same as the rc.local file.
Back to top
View user's profile Send private message
hampton275
Tux's lil' helper
Tux's lil' helper


Joined: 06 Sep 2002
Posts: 104

PostPosted: Sat Sep 07, 2002 12:35 am    Post subject: Reply with quote

Awesome, that's what I was looking for.
Thanks.
Back to top
View user's profile Send private message
kirkegard
n00b
n00b


Joined: 03 Sep 2002
Posts: 11

PostPosted: Mon Sep 09, 2002 11:55 pm    Post subject: Supressing the output from init.local Reply with quote

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
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Tue Sep 10, 2002 12:02 am    Post subject: Re: Supressing the output from init.local Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum