From owner-freebsd-hackers Mon Jul 14 09:45:39 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id JAA01045 for hackers-outgoing; Mon, 14 Jul 1997 09:45:39 -0700 (PDT) Received: from smtp1.ts.kiev.ua (viking.ts.kiev.ua [193.124.229.195]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id JAA01033 for ; Mon, 14 Jul 1997 09:45:27 -0700 (PDT) Received: from aviion.ts.kiev.ua by smtp1.ts.kiev.ua with SMTP id TAA15849; (8.8.3/zah/2.1) Mon, 14 Jul 1997 19:34:36 +0300 (EET DST) Received: from nbki.ipri.kiev.ua by aviion.ts.kiev.ua with ESMTP id RAA04444; (8.6.11/zah/2.1) Mon, 14 Jul 1997 17:22:17 GMT Received: from cki.ipri.kiev.ua by nbki.ipri.kiev.ua with ESMTP id TAA26348; (8.6.9/zah/1.1) Mon, 14 Jul 1997 19:17:59 +0100 Received: from 194.44.146.14 (mac.ipri.kiev.ua [194.44.146.14]) by cki.ipri.kiev.ua (8.7.6/8.7.3) with SMTP id SAA00454; Mon, 14 Jul 1997 18:26:51 +0300 (EET DST) Message-ID: <33CA3780.389F@cki.ipri.kiev.ua> Date: Mon, 14 Jul 1997 17:28:04 +0300 From: Ruslan Shevchenko Reply-To: rssh@cki.ipri.kiev.ua Organization: IPRI X-Mailer: Mozilla 3.01Gold (Macintosh; I; 68K) MIME-Version: 1.0 To: Terry Lambert CC: Gary.Jennejohn@munich.netsurf.de, freebsd-hackers@freefall.FreeBSD.org Subject: Re: /etc/init.d/ References: <199707112126.OAA25717@phaeton.artisoft.com> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Terry Lambert wrote: > > > I run a SVR4 box here at home, and the only useful run-level options > > (IMHO) it offers involve NFS services. When I need NFS I just > > switch to that run-level and all the services are started. When I'm > > done using NFS I just switch to a lower level and the NFS stuff is > > removed. But a box without networking is pretty useless and I've never > > run the box in that configuration. > > Most of the advocates of run states (not levels) agree with you. > > However, say I have a laptop; it can be: > > o Docked at the office and hooked into a net > o Undocked at the office in a conference room > and hooked into a net via a 4Mbit IR link > at the conference table > o Undocked on a plane with a dialup link > o Undocked anywhere with a cellular link > o Undocked anywhere with a cellular link, but > out of cell range > o Undocked anywhere with no link > o Docked at home and hooked into a *different* net > o Docked at home with a dialup connection > o Docked at home and not hooked into a net > > I want the boot run state to assess the connectivity options, > and pick the run state it ends up in based on the current > hardware configuration. > > I also want to be able to "hot" undock/dock, and automatically > change between the appropriate states, as needed. > > Windows95 assumes you shut the machine down. You must also > manually pick one of several "Hardware Profiles" (which you > can do at boot time). > > Even if the states are not automatically configured by docking > state/PCMCIA card state changes, in order to do what Windows95 > can do, several client and service configuration details normally > handled globally in a single rc file in traditional BSD need to > be handled otherwise. > > For example, should I mount the NFS server with the shared copy > of WordPerfect 4.2 for IBCS2? > > There is also the issue of service anonymity: > > 1) I'm docked at the office, and have created a > presentation using a presentation graphics package > with a floating network license, run from an office > server. > 2) I undock at the office to go to a meeting in a > conference room > 3) I arrive at the conference room and am IR linked > 4) I leave the conference room and get in the car > 5) I enter my home and redock at the home dock > 6) I undock and get back in my car > 7) I drive to the airport > 8) While waiting for my flight, I check on my stocks > via a cellular link > 9) I get on the plane, where if I were to use the > cellular link, I would get in trouble because > the airlines can't make as much money off me (planes > would fall out of the sky over any metropolitan area > if the avionics claims were true). > 10) Halfway through my flight from LA to New York, I > user the 28.8 modem built into my ethernet PCMCIA > card to connect to the in flight phone and check > the stock close price. > 11) I arrive at my hotel and use the ISDN card to > connect to the hotel's digital PBX, and check > my corporate mail. > 12) The next morning I check my corporate mail and > the opening value of my stock. > 13) I drive the rent-a-car to the corporate offices, > go into the conference room, and get an IR link and > mount the local server where the same presentation > software is installed, obtain a local license, and > make my presentation to the board. > Yes. The concept of init states is very good. for example, my currently problem: At home: 1. booting without net 2. X 3. Connect with my provider via phone. AT work: (one of mashines) 1. boot without net 1.1 Start X 2. Check, if router is live 3. Check for living of NFS and rumba mashines. start rumba and NFS (Of course, I can do it all from amd, but I must start it *after* the net is up) And in all levels, I can work few hours (debuging a C programm, for example)