From owner-freebsd-rc@FreeBSD.ORG Mon Jul 21 18:07:19 2014 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1F8B5B74; Mon, 21 Jul 2014 18:07:19 +0000 (UTC) Received: from mail.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C3E7722F2; Mon, 21 Jul 2014 18:07:18 +0000 (UTC) Received: from e-new.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id 0B66D6A6017; Mon, 21 Jul 2014 20:07:15 +0200 (CEST) Received: from e-new.0x20.net (localhost [127.0.0.1]) by e-new.0x20.net (8.14.7/8.14.7) with ESMTP id s6LI7E2w012621; Mon, 21 Jul 2014 20:07:14 +0200 (CEST) (envelope-from lars@e-new.0x20.net) Received: (from lars@localhost) by e-new.0x20.net (8.14.7/8.14.7/Submit) id s6LI7E11011400; Mon, 21 Jul 2014 20:07:14 +0200 (CEST) (envelope-from lars) Date: Mon, 21 Jul 2014 20:07:14 +0200 From: Lars Engels To: Adrian Chadd Subject: Re: [PATCHES] Extend service(8) and rc(8) was: Re: HOWTO articles for migrating from Linux to FreeBSD, especially for pkg? Message-ID: <20140721180714.GJ96250@e-new.0x20.net> Mail-Followup-To: Lars Engels , Adrian Chadd , freebsd-current Current , freebsd-rc@freebsd.org, bapt@freebsd.org References: <53C82EC4.8060304@gmail.com> <20140718142835.GF96250@e-new.0x20.net> <20140719160809.GU96250@e-new.0x20.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Or+E1gVcyGxE6cpa" Content-Disposition: inline In-Reply-To: X-Editor: VIM - Vi IMproved 7.4 X-Operation-System: FreeBSD 8.4-RELEASE-p4 User-Agent: Mutt/1.5.23 (2014-03-12) Cc: bapt@freebsd.org, freebsd-current Current , freebsd-rc@freebsd.org X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jul 2014 18:07:19 -0000 --Or+E1gVcyGxE6cpa Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 19, 2014 at 12:56:42PM -0700, Adrian Chadd wrote: > Hi! >=20 > I like it! It's a useful command line API. >=20 > Eventually people will realise there needs to be a more formal method > for describing/controlling the underlying framework, but I leave that > up to bapt to figure out and .. well, push people to do. :) >=20 > Thanks! >=20 >=20 >=20 > -a >=20 [CC trimmed] I added a -s flag to allow the usage of /etc/rc.conf.d/$script for use with puppet, etc. https://phabric.freebsd.org/D451 --Or+E1gVcyGxE6cpa Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQF8BAEBCgBmBQJTzVbSXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RjQwMDE3RTRERjUzMTI1N0FGRTUxNDlF NTRDQjM3RDNBMDg5RDZEAAoJEOVMs306CJ1tTfoH/0Y2M1serEnPfrGgXbLI/qWk YkG3IK5ipcqCFh+khDEuFuax7VRjMqZLJMGZUPuRwaRed2T7ah9MFViY0xPxMJ/z bIVTAgjanbPYTG37d4c1DiROIa8IMyLftjgW0a91UwaVD830yy+xYyUQNCTvqyV5 r30kYBgQKIzSZ6XKgLqjKBBYXecoWSbv8IOyr6UMjp/v3qHdVNEcJXVjLtalKPb3 16vIRAJMS02uPqDO08sjSksLv5ffS4mubzu07QeB3VDEYBgMj60005/q23970B4Z hbDkn5G4tp0cPI+Xrr6F6sVOdpCShmNRal7cCyIyRifLpi3LEImKdwO9JH2658w= =G4r8 -----END PGP SIGNATURE----- --Or+E1gVcyGxE6cpa-- From owner-freebsd-rc@FreeBSD.ORG Thu Jul 24 00:10:43 2014 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5FBDC40B for ; Thu, 24 Jul 2014 00:10:43 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47B312A79 for ; Thu, 24 Jul 2014 00:10:43 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.8/8.14.8) with ESMTP id s6O0AhaG028520 for ; Thu, 24 Jul 2014 00:10:43 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-rc@FreeBSD.org Subject: [Bug 191252] [rc.conf] [vlan] [carp] broken alias syntax on vlan interfaces Date: Thu, 24 Jul 2014 00:10:43 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 10.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: agifford@infowest.com X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-rc@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jul 2014 00:10:43 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191252 agifford@infowest.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |agifford@infowest.com --- Comment #2 from agifford@infowest.com --- I can confirm this same problem with 9.3-RELEASE after upgrading from 9.2. ... ifconfig_em0="up" ## works vlan_em0="13 202" ## works ifconfig_em0_13="inet 10.0.0.5/24" ## works ifconfig_em0_13_aliases="inet 10.0.0.6/32 inet 10.0.0.12/32" ## FAILS miserable ... Alternatively, old-style: ... ifconfig_em0_13_alias0="inet 10.0.0.6/32" ## FAILS ifconfig_em0_13_alias1="inet 10.0.0.12/32" ## FAILS .. My WORK-AROUND for this BUG in the rc scripts was to resort to this: ifconfig_em0="up" vlan_em0="em0vlan13 em0vlan202" create_args_em0vlan13="vlan 13" create_args_em0vlan202="vlan 202" ifconfig_em0vlan13="inet 10.0.0.5/24" ifconfig_em0vlan13_aliases="inet 10.0.0.6/32 inet 10.0.0.12/32" ## WORKS So I'm betting it's that pesky dot-translated-to-underscore somewhere in the rc network script functions is biting the em0.13 interface syntax when it gets translated into em0_13 for the purposes of alias variables. Sincerely, Aaron Gifford -- You are receiving this mail because: You are the assignee for the bug.