Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Gentoo initscripts - depend function
- Date: Wed, 8 Nov 2006 14:34:10 +0900
- From: Romans Malinovskis <romaninsh@example.com>
- Subject: Re: [tlug] Gentoo initscripts - depend function
- References: <45514FDE.4010501@example.com>
I need help understanding how depend() in Gentoo init scripts works in more detail. Specifically where are virtual dependencies defined?
Usually - inside like this (metalog sample): depend() { use clock hostname provide logger }
However in case of net modules, it's really complicated. you might want to take a look at /lib/rcscripts/net/ if you are bash wizard, i am looking at them for a half hour now and i can't figure it out.
For example my sshd initscript has "need net" as a dependency and it appears that in this case the service that meets this dependency is net.eth0. What I would like to do is to meet this dependency with net.eth0 OR net.eth1.
both net.* will provide "net" service. however eth0 is default. If you add net.eth1 to your "boot" runlevel then eth1 will be used instead IMHO.
I don't think i have completely answered your question, but this is best i can do. sorry about that.
r
- Follow-Ups:
- Re: [tlug] Gentoo initscripts - depend function
- From: Keith Bawden
- References:
- [tlug] Gentoo initscripts - depend function
- From: Keith Bawden
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Xming - COOL!
- Next by Date: Re: [tlug] Xming - COOL!
- Previous by thread: [tlug] Gentoo initscripts - depend function
- Next by thread: Re: [tlug] Gentoo initscripts - depend function
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links