Gentoo Archives: gentoo-dev

From: Sebastian Werner <sebastian@××××××××××××××××××.de>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] rcscripts
Date: Sun, 23 Dec 2001 17:49:46
Message-Id: TRGAOI4TNKLWVYT987SJF21SO.3c266c96@wp
In Reply to: Re: [gentoo-dev] rcscripts by Martin Schlemmer
1 Am 24.12.2001 00:27:12, schrieb Martin Schlemmer <azarah@g.o>:
2
3 >On Mon, 2001-12-24 at 01:13, Martin Schlemmer wrote:
4 >> On Mon, 2001-12-24 at 00:40, Sebastian Werner wrote:
5 >> > Many other problems there. If I stop net.ppp it will stop near 10
6 >> > services (samba, apache, ...). But the depend line in net.ppp only
7 >> > contains net.eth0 (on my system). Why this ugly ;-) script think they
8 >> > depend on this. They start after net.ppp but means this they depend on
9 >> > net.ppp?
10 >>
11 >> I am not sure I understand ? what depend line in net.ppp ?
12 >> where did you get this script/with what package does it come?
13 >>
14 >> I also use ppp, but when I stop it, only it stops, and not
15 >> all the rest. I will do some testing to verify this, but for
16 >> now try not to add net.ppp0 to a runlevel.
17 >>
18 >> In general, if a net.* service is added to the default
19 >> runlevel, the behaviour will be that it will be included in
20 >> the 'net' dependancy, this, if you stop it, everything
21 >> depending on 'net' will stop.
22 >>
23 >> Like I said, if you want to stop a net.* service, and not
24 >> stop the services depending on 'net', dont add that net.*
25 >> service to a runlevel.
26 >>
27 >> We could probably devise a hack for this, but currently I do
28 >> not see a need for this. Just add
29 >
30 >My reason for being against it, is that if you dont want
31 >it to be included in the 'net' dependancy (meaning, you
32 >dont want all services depending on 'net' to stop when
33 >stopping it), is that why must it be part of the boot/default
34 >runlevel if services dont depend on it ?
35 >
36
37 Ok this sounds correct. I have a free line and want be online
38 after system startup is complete but i want to have the control
39 to stop this connection without stopping all services depend on
40 any net*.
41
42 I understand you words the following way. If one service use the depend
43 net.ppp, the dependencie net will extend with net.ppp? And all services
44 depend on net then depend on net.ppp, too?
45
46 >A service like that usually gets started after boot, like
47 >ppp. Most users that use ppp and want to stop if freely all
48 >the time, do not have a perm/free connection. And anyhow,
49 >if something does depend on net.ppp0, add net.ppp0 to its
50 >'need' line, then net.ppp0 will still be started at boot,
51 >but only this service will stop when net.ppp0 is stopped.
52 >
53 >>
54 >> /etc/init.d/net.ppp0 start
55 >>
56 >> to /etc/init.d/local, and you should be set if you want it
57 >> to start at boot.
58 >>
59 >> What do you think Daniel?
60 >
61 >
62 >Greetings,
63 >--
64 >
65 >Martin Schlemmer
66 >Gentoo Linux Developer, Desktop Team Developer
67 >Cape Town, South Africa
68 >
69 >

Replies

Subject Author
Re: [gentoo-dev] rcscripts Martin Schlemmer <azarah@g.o>