1 |
Hi, |
2 |
|
3 |
I just switched my internet gateway from a heavily handpatched SuSE 7.3 |
4 |
to Gentoo 1.4rc4. So far it *works* :o) |
5 |
My setup is: |
6 |
|
7 |
/etc/init.d/net.eth1 (PPPoE-device): |
8 |
-> provide net.eth-dsl (virtual provide) |
9 |
|
10 |
/etc/init.d/net.ppp0 (DSL-iface): |
11 |
-> need net.eth-dsl (virtual provide from net.eth1) |
12 |
-> provide net.internet (virtual provide) |
13 |
|
14 |
/etc/init.d/ddclient (DynDNS.org updater): |
15 |
-> need net.internet (virtual provide from net.ppp0) |
16 |
|
17 |
This works *so far*: |
18 |
--8<-- |
19 |
[root@chiron(pts/2):tmp]$ rcddclient start |
20 |
* Bringing eth1 up... [ ok ] |
21 |
* Starting pppd (ppp0)... [ ok ] |
22 |
* Starting DDClient... [ ok ] |
23 |
[root@chiron(pts/2):tmp]$ rcnet.eth1 stop |
24 |
* Stopping DDClient... [ ok ] |
25 |
* Stopping pppd (ppp0)... [ ok ] |
26 |
* Bringing eth1 down... [ ok ] |
27 |
[root@chiron(pts/2):tmp]$ |
28 |
--8<-- |
29 |
|
30 |
What I tried to do now is the following: when net.ppp0 is started, |
31 |
ddclient should be started automatically as well. I've found no |
32 |
dependency-way to do this (except making net.ppp0 need ddclient, which |
33 |
turns out to be kinda logical loop, despite the fact it seems to work in |
34 |
practice... still feels bad). |
35 |
|
36 |
What about a new dependency like "triggeredby"? |
37 |
Another name could be "stickto"... |
38 |
This would/should/could both affect "start" and "stop" operations. E.g.: |
39 |
|
40 |
/etc/init.d/ddclient: |
41 |
-> triggeredby net.ppp0 |
42 |
-> after net.ppp0 |
43 |
|
44 |
This would cause ddclient to be started when net.ppp0 is started, but |
45 |
due to the "after" dep, it would be started *after* net.ppp0. |
46 |
Kinda reverse/twisted need dependency... or something. |
47 |
|
48 |
This "triggeredby" could be applied to e.g. squid, iptables, postfix... all the |
49 |
stuff you *might* choose to need when connecting to the internet but |
50 |
don't want to start before you *really* connect. |
51 |
|
52 |
Comments please. |
53 |
-- |
54 |
Wolfram Schlich; Friedhofstr. 8, D-88069 Tettnang; +49-(0)178-SCHLICH |
55 |
|
56 |
-- |
57 |
gentoo-dev@g.o mailing list |