Peter Humphrey <[EMAIL PROTECTED]> posted [EMAIL PROTECTED], excerpted below, on Sat, 10 Feb 2007 09:47:41 +0000:
> I'd like my /etc/conf.d/local.start to distinguish between soft run-levels, > so that "sensors -s" will be run in the default level but not in the no-x > level I've defined for maintenance. sensors -s? If that's lm_sensors, why aren't you running the lm_sensors initscript instead of using local.start for it? It does a bit more dependency checking and the like. Is it that you decided you didn't need all that and just want the simple command, or were you not aware of the initscript, or ??? > I recently found something that might do the trick, using (I think) a > soft-level suffix to the conf.d/ file name, but now I can't find it. Would > someone please tell me where it is? Try RC_USE_CONFIG_PROFILE, comment starting on line 53, setting on line 60, of /etc/conf.d/rc (if you've kept the comments and all intact, line numbering based on the baselayout-1.13.0_alpha12 file). I'd suggest using the standard lm_sensors initscript, unless you have a specific reason not to, just because it means system changes that might otherwise break it are more likely to be fixed by the lm_sensors package before you even start worrying about it, but then if desired use the softlevel thing. Here, however, I just use traditional (aka "hard", I suppose) initlevels, setting up additional ones as needed. The only ones normally used by the system are 0/halt, 1/single-user, 6/reboot (those three nearly universal Unix), and at least one other "operational" level from those between 2 and 5. Gentoo normally uses 3/default and 2/nonet, thus leaving levels 4 and 5 free for local use. In addition, levels 7-9 are available on the standard Linux sysvinit package, tho those aren't standard across all *ix like the 0-6 levels are. Thus, there's plenty of additional levels to choose and I simply switch between them as necessary using the standard "init <number>" command, or just add the appropriate number on the command line if booting directly to something other than my usual default as set in /etc/inittab. I don't think I've ever used Gentoo's softlevel stuff, as I've really had no need to do so. I'd have to read thru that section in the handbook again to even know what or how to do with it. (And yes, I'm aware I just treated a linguistic inequity as equal.) -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman -- [email protected] mailing list
