View previous topic :: View next topic |
Author |
Message |
bluesky Apprentice
Joined: 14 Aug 2002 Posts: 230 Location: USA
|
Posted: Fri Oct 25, 2002 7:36 pm Post subject: boot sequence |
|
|
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?
_________________ bluesky
"free as the wind" |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Fri Oct 25, 2002 8:05 pm Post subject: |
|
|
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 ) _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
bluesky Apprentice
Joined: 14 Aug 2002 Posts: 230 Location: USA
|
Posted: Fri Oct 25, 2002 10:44 pm Post subject: re: boot sequence |
|
|
Thanks . It worked. _________________ bluesky
"free as the wind" |
|
Back to top |
|
|
|