-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 24/08/12 03:58 PM, William Hubbs wrote: > On Fri, Aug 24, 2012 at 01:50:14PM -0400, Alexandre Rostovtsev > wrote: >> On Fri, 2012-08-24 at 12:10 -0500, William Hubbs wrote: >>> The second question this bug brings up is whether services >>> should "need" or "use" net. Remember that the "need" dependency >>> will try to run the needed service even if it is in init.d but >>> not in a runlevel. >> >> Presumably that depends on the service. If a daemon can deal >> with network interfaces going up and down, then "use net" of >> course makes more sense. > > This user is running with pre-configured interfaces (root is nfs > mounted). The network interface configuration should not be touched > by openrc. > > If you look at his logs, one issue is that the "network" service > is starting even though it isn't in a runlevel. I have made changes > in git master so this will not be installed if you do not use the > "newnet" use flag. > > When network interfaces are pre-configured, our network scripts > shouldn't run at all, but they can be forced to run if other > services have "need net" in their dependencies. > > So my question is, should we change our services to "use net" > instead of "need net"? >
No, we shouldn't. "need net" is important and "use net" doesn't suffice in many cases. However, for a NFS-root system there's a way to either #1 make the "net" service do nothing (or alternatively overwrite the previously configured net with the exact same info -- but iirc the do-nothing option works), and alternatively #2 make it so that "net" is provided right away. One thing, though, that i'm not certain of is How the different runlevels interact -- ie if "net" is started (considered up) at "boot", it should be (and i assume is, but could be wrong) "up" during "default" or whatever other runlevel there is, right? I know it was with baselayout-1 (which i'm actually still running on my NFS-root cluster). -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iF4EAREIAAYFAlA4J6kACgkQ2ugaI38ACPAoigEAgi/Idi+tk/lmg597aVqJ+dKD 978sMNwUFnLD5GjTjM4A/1+xa5KmmF9b7SgOw0LFIdcBGByHCq8i3nd3HpgnGYhX =FvL9 -----END PGP SIGNATURE-----