On Tuesday 22 Dec 2015 01:12:10 Kai Krakow wrote:
> Am Tue, 22 Dec 2015 00:54:35 +0000
> 
> schrieb Mick <michaelkintz...@gmail.com>:
> > On Tuesday 22 Dec 2015 00:48:13 Neil Bothwick wrote:
> > > On Mon, 21 Dec 2015 23:55:06 +0000, Mick wrote:
> > > > > Are you trying to run ifplugd from its init script? It's not
> > > > > meant to be used like that with openrc.
> > > > 
> > > > I don't have any init scripts for ifplugd.  I wondered what starts
> > > > it/stops it, and found /lib64/netifrc/net/ifplugd.sh
> > > 
> > > It should be started by the net.eth* scripts, so you need to start
> > > the network interface first.
> > 
> > Thanks again Neil.  I don't think this is as you suggest.  I never
> > had wired or wireless interfaces enabled to start at boot time,
> > because ifplugd started them up as necessary.
> > 
> > From the README file:
> >    The network interface which is controlled by ifplugd should not be
> >    configured automatically by your distribution's network subsystem,
> >    since ifplugd will do this for you if needed.
> 
> But that doesn't apply here because the "net.* plugin" starts ifplugd,
> and defers further initializations until ifplugd detects a link.
> 
> This is what I meant when I talked about pushing ifplugd further down
> the layer. I just didn't remember that this is now solved by a plugin
> in net.* itself.
> 
> Don't enable ifplugd service. Openrc will do its magic.

There is no means of enabling or disabling the ifplugd service that I have 
found, because there is no /etc/init.d/ifplugd script.  Once installed ifplugd 
always starts at boot and daemonizes, configuring or tearing down connections 
as a link is detected or lost.

To make it clearer, this is how it used to work on two laptops:

I install ifplugd and remove from rc-update any net.<iface> that I have 
configured.  ifplugd will always start at boot as a daemon and will bring up 
and configure the wired NIC once a cable is detected.  There is no start up 
script in /etc/init.d/ installed by default, although the man page mentions 
it, along with /etc/ifplugd/ifplugd.conf, which is also not installed.  This 
is the only file that installed on my systems:

# find /etc -iname *ifplug*
/etc/ifplugd
/etc/ifplugd/ifplugd.action


I started this thread because recently I have to start my wired interface 
manually, after which point ipfplugd also starts, daemonizes and manages the 
connection.  This is not how it used to work - I never had to start the wired 
interface myself.

Furthermore, starting ifplugd on a terminal now shows that it is listening on 
eth0 instead of enp11s0, but hadn't tried this before things broke.  According 
to the man page eth0 is the default, but I can't recall manually specifying a 
different interface for ifplugd in the past.  It always brought up the wired 
interface, no matter what it was called.

-- 
Regards,
Mick

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to