Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
boot sequence
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
bluesky
Apprentice
Apprentice


Joined: 14 Aug 2002
Posts: 230
Location: USA

PostPosted: Fri Oct 25, 2002 7:36 pm    Post subject: boot sequence Reply with quote

I read the gentoo doc on init but still feel a little bit confused. What I want to know is:

1. How to get a daemon ( or program )to start at boot and stop at shutdown?

2. How to set the sequence of various programs to start up?

3. In some distro, the rc.conf is used to set the sequence of programs startup. What is it function in gentoo?

4. What is used in place of rc1.d, rc2.d ... in Gentoo?

Can you give me some hints?

:x
_________________
bluesky

"free as the wind"
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Fri Oct 25, 2002 8:05 pm    Post subject: Reply with quote

1) rc-update a-daemon-or-program add boot Where a-daemon-or-program is a script in /etc/init.d. According the the rc-script guide, it will need at least a start() function. You can include a stop() function too.

2) Use the depend, before or after settings.

3) Don't think there is a 'file' that does this. As far as I know, the runlevel is the 'first' order of precendence. After that, the depend, before and after options control the order.

4) /etc/init.d and /etc/runlevels perhaps?

I'd take a look at /etc/net.eth0 for an example. Should be reasonably understandable.

That is my udnerstanding... anyone feel free to correct me (like that needs to be written :D)
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
bluesky
Apprentice
Apprentice


Joined: 14 Aug 2002
Posts: 230
Location: USA

PostPosted: Fri Oct 25, 2002 10:44 pm    Post subject: re: boot sequence Reply with quote

Thanks . It worked.
_________________
bluesky

"free as the wind"
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