From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 459C91384B4 for ; Tue, 22 Dec 2015 14:05:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D0C5A21C0AA; Tue, 22 Dec 2015 14:04:26 +0000 (UTC) Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A960921C094 for ; Tue, 22 Dec 2015 14:04:25 +0000 (UTC) Received: by mail-wm0-f48.google.com with SMTP id l126so111558591wml.0 for ; Tue, 22 Dec 2015 06:04:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:reply-to:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; bh=5zFKJbi5hvBKXw7n26Hb6QmX9d8ohJxG7qjfDia5xbQ=; b=kJ56fxw/lLqFq82T8Zehohh+fuwGkHGVz2LLhV2NDbXyoP+dYpRVL33Z7QDxdIe8Jm rX8dytg8pRlRJso9PJntZgWISsAsEM7QV3pI/T1JrhWfIeeQqeTFgw55uxL1rM4NpXHy KCqBnpQKYM+EbLrqQy3n7lIVgzVSY0fZvaI36kyWzf0oQsZDkhjzMbiaiPeTTnJRQmT/ CXFnWhg3FGgs8HWNIoIpNA3P0QJ0WgqLqP+e/Vwo0YXHZHuy2+KnlEZUk5cSGIOF7j/p +b1Dk8d1aqu07thGQYdBzaZfhNYGyPKhTbd8YCkhSOsEFVuIqI9c3ynE59B0RQ6iNQA8 LNmA== X-Received: by 10.28.99.69 with SMTP id x66mr4643152wmb.10.1450793064540; Tue, 22 Dec 2015 06:04:24 -0800 (PST) Received: from dell_xps.localnet (230.3.169.217.in-addr.arpa. [217.169.3.230]) by smtp.gmail.com with ESMTPSA id i196sm13867823wmf.23.2015.12.22.06.04.23 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Dec 2015 06:04:23 -0800 (PST) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: Problem with openrc-0.18.4 and ifplugd Date: Tue, 22 Dec 2015 14:04:12 +0000 User-Agent: KMail/1.13.7 (Linux/4.1.12-gentoo; KDE/4.14.8; x86_64; ; ) References: <201512201826.31348.michaelkintzios@gmail.com> <201512220054.36367.michaelkintzios@gmail.com> <20151222021210.1ff51a89@jupiter.sol.kaishome.de> In-Reply-To: <20151222021210.1ff51a89@jupiter.sol.kaishome.de> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2646654.tklpMZ2Xx5"; protocol="application/pgp-signature"; micalg=pgp-sha256 Content-Transfer-Encoding: 7bit Message-Id: <201512221404.21979.michaelkintzios@gmail.com> X-Archives-Salt: 51b59884-e0bc-4061-b08d-6c781572dad6 X-Archives-Hash: 4d160908f584c8f139300716a41de398 --nextPart2646654.tklpMZ2Xx5 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Tuesday 22 Dec 2015 01:12:10 Kai Krakow wrote: > Am Tue, 22 Dec 2015 00:54:35 +0000 >=20 > schrieb Mick : > > 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. > > > >=20 > > > > I don't have any init scripts for ifplugd. I wondered what starts > > > > it/stops it, and found /lib64/netifrc/net/ifplugd.sh > > >=20 > > > It should be started by the net.eth* scripts, so you need to start > > > the network interface first. > >=20 > > 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. > >=20 > > 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. >=20 > But that doesn't apply here because the "net.* plugin" starts ifplugd, > and defers further initializations until ifplugd detects a link. >=20 > 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. >=20 > Don't enable ifplugd service. Openrc will do its magic. There is no means of enabling or disabling the ifplugd service that I have= =20 found, because there is no /etc/init.d/ifplugd script. Once installed ifpl= ugd=20 always starts at boot and daemonizes, configuring or tearing down connectio= ns=20 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. that I have=20 configured. ifplugd will always start at boot as a daemon and will bring u= p=20 and configure the wired NIC once a cable is detected. There is no start up= =20 script in /etc/init.d/ installed by default, although the man page mentions= =20 it, along with /etc/ifplugd/ifplugd.conf, which is also not installed. Thi= s=20 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=20 manually, after which point ipfplugd also starts, daemonizes and manages th= e=20 connection. This is not how it used to work - I never had to start the wir= ed=20 interface myself. =46urthermore, starting ifplugd on a terminal now shows that it is listenin= g on=20 eth0 instead of enp11s0, but hadn't tried this before things broke. Accord= ing=20 to the man page eth0 is the default, but I can't recall manually specifying= a=20 different interface for ifplugd in the past. It always brought up the wire= d=20 interface, no matter what it was called. =2D-=20 Regards, Mick --nextPart2646654.tklpMZ2Xx5 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJWeVhlAAoJELAdA+zwE4YeJG4H/jm3QgOpCNyIr67xfVG+ZxMn BMG9SvswvqX+obWgkjyohLIFLesbcTwT4RVgJ2KU7b7pDbHCdUnWvi5Izc4tnkDI ebI4JebywTOnAb9Rn9YAsbwqYGaGO8cbFbdr2zjXiz8a2XyJvUlO335hMHpWH28Z MmLpS1CS9xxY8ctVWINz+ZYFbWTTO2Ao80mtsolZiDmrfDI5MLZWWempMPTx3f6+ T64cQKRI62YEribENiXflopWhUABtI/xC+iV3pkT4esTEjUsmv/DKA3x02ghyMhh PUEThIkKJyFhBobyuPC8ujptks1TgmKSOoHfd5uUXosuWWA8jnmguL/fo49BBFY= =R+Mq -----END PGP SIGNATURE----- --nextPart2646654.tklpMZ2Xx5--