Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jun 2012 13:42:02 +0200
From:      "Michael Ross" <gmx@ross.cx>
To:        "Wojciech Puchar" <wojtek@wojtek.tensor.gdynia.pl>
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>, openrc@gentoo.org
Subject:   Re: Replacing rc(8) (Was: FreeBSD Boot Times)
Message-ID:  <op.wf834cblg7njmm@michael-think>
In-Reply-To: <alpine.BSF.2.00.1206211252590.1955@wojtek.tensor.gdynia.pl>
References:  <4FDFB44D.9090308@gentoo.org> <4FE0ADCD.9010109@FreeBSD.org> <4FE0C123.8030301@gentoo.org> <CAGH67wRidMZrzjzTSdwud%2BZ5V--wOTN8CHXOWcOr%2BE5XHYo2rA@mail.gmail.com> <4FE0F773.1080403@gentoo.org> <CAGH67wQdb-c0Kf=60rkaJSH8Hd0OjwCi=rQQMzGq8xfp2q7b=Q@mail.gmail.com> <4FE100F9.2050009@funtoo.org> <20120620073920.GA5300@lonesome.com> <alpine.BSF.2.00.1206201618560.75278@wojtek.tensor.gdynia.pl> <CAPDOV49kkOdeV%2B6LVW5j5PO6VYrrNVqWZEksc_GzvWHjbufoAQ@mail.gmail.com> <20120620214006.GA1651@aspire.rulingia.com> <alpine.BSF.2.00.1206211159280.1662@wojtek.tensor.gdynia.pl> <op.wf81nddbg7njmm@michael-think> <alpine.BSF.2.00.1206211252590.1955@wojtek.tensor.gdynia.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
Am 21.06.2012, 12:56 Uhr, schrieb Wojciech Puchar  
<wojtek@wojtek.tensor.gdynia.pl>:

>>
>>  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 <role>" 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.wf834cblg7njmm>