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 04C1213877A for ; Sun, 22 Jun 2014 14:29:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C4128E09CA; Sun, 22 Jun 2014 14:29:11 +0000 (UTC) Received: from mail-qc0-f175.google.com (mail-qc0-f175.google.com [209.85.216.175]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 463FBE09CA for ; Sun, 22 Jun 2014 14:29:10 +0000 (UTC) Received: by mail-qc0-f175.google.com with SMTP id i8so5107507qcq.6 for ; Sun, 22 Jun 2014 07:29:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=BY/hBRrOKZeYgUgS/5MoP74TFtFYFPdhl1a4BpA0Qn4=; b=jzHnF6HFo+56lwBj1zR5QRIil9fTyDntI5Jyb8n/sU456VHkXL++ITRwyWL4dU11Jo RZHfr1Ldy17vW8RA56FBgTB3KtFawORdpVfJDouPbjBoMt5qudFq5ZIXU3glpigeRfnI 3+YcJd1WhyRzcx102kU6H1qzw3f+i/iGBGrKtpxDdvXVjKKqgPAzo8WKMiwu1tJN0YiC b4pSLXmvBcPVn0srULPA6EyGajrU3UVidh2Vx6eE9r4WPfd/HFLmhtLzAsLGQhpyxRkF Ojf64W9B09u1cqRMUa2Cum/4tIPkYsLE3qZCRD5RLKfrk+KwCu6fZu9a0URc8PTKgENL A0IQ== X-Received: by 10.140.84.168 with SMTP id l37mr22716785qgd.104.1403447350087; Sun, 22 Jun 2014 07:29:10 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-soc@lists.gentoo.org Reply-to: gentoo-soc@lists.gentoo.org MIME-Version: 1.0 Received: by 10.96.129.33 with HTTP; Sun, 22 Jun 2014 07:28:49 -0700 (PDT) In-Reply-To: <861tuhzdqo.fsf@moguhome00.in.awa.tohoku.ac.jp> References: <861tuhzdqo.fsf@moguhome00.in.awa.tohoku.ac.jp> From: Rabi Shanker Guha Date: Sun, 22 Jun 2014 19:58:49 +0530 Message-ID: Subject: Re: [gentoo-soc] netifrc on systemd: Weekly Report #5 To: gentoo-soc@lists.gentoo.org Content-Type: multipart/alternative; boundary=001a11c11708c3c9f004fc6d8cae X-Archives-Salt: fef5204f-95ab-4b3c-9e06-083c637f4bda X-Archives-Hash: 32362b6af5c7e57741dbf3d873cc8a31 --001a11c11708c3c9f004fc6d8cae Content-Type: text/plain; charset=UTF-8 Hello Benda, Actually this is not my convention. This is piggybacking on the systemd convention In the current system (openrc) net.eth0 is a symlink to net.lo and the interface is deduced at run-time and appropriate action is taken. In systemd instantiated services work in the same way. Symlink to the original service and the @ part is passed as a parameter and I guess it is supposed to be used the same way too i.e. the @ part is to be seen as an variable. So I thought this would be the best way to represent it in systemd setting. Hope this makes sense. On Sun, Jun 22, 2014 at 11:29 AM, wrote: > Hey Rabi, > > Rabi Shanker Guha writes: > > > sudo systemctl restart net@eth0 > > sudo systemctl status net@eth0 > > Just curious how this naming scheme were formed. Intuitively, eth0 is a > subset of net, making "eth0@net" and "net.eth0" more natural. > > Benda > > -- Regards, Rabi --001a11c11708c3c9f004fc6d8cae Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello Benda,

Actually this is not my co= nvention. This is piggybacking on the systemd convention
In the c= urrent system (openrc) net.eth0 is a symlink to net.lo and the interface is= deduced at run-time and appropriate action is taken.
In systemd instantiated services work in the same way. Symlink to the = original service and the @ part is passed as a parameter and I guess it is = supposed to be used the same way too i.e. the @ part is to be =C2=A0seen as= an variable. So I thought this would be the best way to represent it in sy= stemd setting.

Hope this makes sense.


On Sun, Jun 22, 2014 at 11:29 AM, = <heroxbd@gmail.com> wrote:
Hey Rabi,

Rabi Shanker Guha <guha.ra= bishankar@gmail.com> writes:

> sudo systemctl restart net@eth0
> sudo systemctl status net@eth0

Just curious how this naming scheme were formed. Intuitively, eth0 is= a
subset of net, making "eth0@net" and "net.eth0" more na= tural.

Benda




--
Regards,
Rabi
--001a11c11708c3c9f004fc6d8cae--