From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 21 11:42:11 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 46DEA1065674 for ; Thu, 21 Jun 2012 11:42:11 +0000 (UTC) (envelope-from gmx@ross.cx) Received: from www81.your-server.de (www81.your-server.de [213.133.104.81]) by mx1.freebsd.org (Postfix) with ESMTP id EDC158FC14 for ; Thu, 21 Jun 2012 11:42:10 +0000 (UTC) Received: from [92.76.95.179] (helo=michael-think) by www81.your-server.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.74) (envelope-from ) id 1Shfm6-00049j-4v; Thu, 21 Jun 2012 13:42:10 +0200 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: "Wojciech Puchar" References: <4FDFB44D.9090308@gentoo.org> <4FE0ADCD.9010109@FreeBSD.org> <4FE0C123.8030301@gentoo.org> <4FE0F773.1080403@gentoo.org> <4FE100F9.2050009@funtoo.org> <20120620073920.GA5300@lonesome.com> <20120620214006.GA1651@aspire.rulingia.com> Date: Thu, 21 Jun 2012 13:42:02 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Michael Ross" Message-ID: In-Reply-To: User-Agent: Opera Mail/12.00 (Win32) X-Authenticated-Sender: gmx@ross.cx X-Virus-Scanned: Clear (ClamAV 0.97.3/15065/Thu Jun 21 00:00:04 2012) X-Mailman-Approved-At: Thu, 21 Jun 2012 11:50:28 +0000 Cc: "freebsd-hackers@freebsd.org" , openrc@gentoo.org Subject: Re: Replacing rc(8) (Was: FreeBSD Boot Times) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2012 11:42:11 -0000 Am 21.06.2012, 12:56 Uhr, schrieb Wojciech Puchar : >> >> ifconfig_em0="inet ..." ( default (or unknown) runlevel ) >> ifconfig_em0_foolevel="inet ..." ( foolevel runlevel ) >> ifconfig_em0_maintenance="inet ..." ( maintanence runlevel ) >> >> too ? > well - possible BUT... but well. > > this will not require only changing "launcher" script for rc.d/* things > but scripts itself. and extra flag so launcher at runlevel change will > have to rerun network initialization script. > > Can you give an example where you need that? it is a bit strange, > network IP numbers are the same no matter what we do at present. I thought that network would be more complicated. My use case: I maintain a business application consisting of - FreeBSD - several ports - my software and I run this system: a) for development, in a VM on my laptop on my local network; b) for demonstration and customer guided planning, in a VM on my laptop on the customers network, c) for production, on a machine on the customers network, d) for production, in a VM on the laptops of the customers team. The software is the same for all 4, but they differ in services started and in network settings. Having "service profiles" and "network profiles" would allow me to have a convenient method of delegating the whole setup to the application: System boots, no services default network, application starts, detects machine role (devel, demo, server, portable), configures the network and starts the appropriate services. As in: I have a configuration file for the application anyway. This configuration file contains the machine role (devel, demo ...) anyway. If I could send this role as a parameter to "rc mode " and network and services would be configured accordingly, I could have an identical rc.conf over all roles, and I'd consider that a big plus. Michael