FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 10-12-2012, 04:41 PM
Josť Romildo Malaquias
 
Default Order in which init scripts providing a service are tried

Hello.

There are some init scripts that provide network connection on my gentoo
system: net.eth0, net.wlan0, net.wlan1, NetworkManager and connman. All
of them provide the "net" service. (connman init script has been edited
to provide "net", as the original installed one does not provide it -
see bug https://bugs.gentoo.org/show_bug.cgi?id=438142)

I want connman chosen to provide "net".

The init system first tries the net.* scripts. So I removed them (they
are symlinks to net.lo, which should not be removed).

Then the init system tries NetworkManager. I do not want to remove it
because it is installed as a dependence to some other packages.

I have tried adding a 'before "NetworkManager"' clause in the connman
init script, but it did not help.

How can I tell the init system to try connman before all other init
scripts providing "net"?

Any clues?

Romildo
 
Old 10-12-2012, 05:16 PM
Florian Philipp
 
Default Order in which init scripts providing a service are tried

Am 12.10.2012 18:41, schrieb Josť Romildo Malaquias:
> Hello.
>
> There are some init scripts that provide network connection on my gentoo
> system: net.eth0, net.wlan0, net.wlan1, NetworkManager and connman. All
> of them provide the "net" service. (connman init script has been edited
> to provide "net", as the original installed one does not provide it -
> see bug https://bugs.gentoo.org/show_bug.cgi?id=438142)
>
> I want connman chosen to provide "net".
>
> The init system first tries the net.* scripts. So I removed them (they
> are symlinks to net.lo, which should not be removed).
>
> Then the init system tries NetworkManager. I do not want to remove it
> because it is installed as a dependence to some other packages.
>
> I have tried adding a 'before "NetworkManager"' clause in the connman
> init script, but it did not help.
>
> How can I tell the init system to try connman before all other init
> scripts providing "net"?
>
> Any clues?
>
> Romildo
>

I don't know how to force openrc to use a specific net provider but you
can try to toggle the rc_depend_strict setting in /etc/rc.conf.

You can also try to add a line like
rc_networkmanager_provide="!net"

Regards,
Florian Philipp
 

Thread Tools




All times are GMT. The time now is 02:15 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org