* [gentoo-amd64] local.start conditional on soft-level @ 2007-02-10 9:47 Peter Humphrey 2007-02-10 14:57 ` Olivier Crête 2007-02-10 15:06 ` [gentoo-amd64] " Duncan 0 siblings, 2 replies; 6+ messages in thread From: Peter Humphrey @ 2007-02-10 9:47 UTC (permalink / raw To: gentoo-amd64 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. 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? Thanks. -- Rgds Peter -- gentoo-amd64@gentoo.org mailing list ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-amd64] local.start conditional on soft-level 2007-02-10 9:47 [gentoo-amd64] local.start conditional on soft-level Peter Humphrey @ 2007-02-10 14:57 ` Olivier Crête 2007-02-11 3:59 ` Peter Humphrey 2007-02-10 15:06 ` [gentoo-amd64] " Duncan 1 sibling, 1 reply; 6+ messages in thread From: Olivier Crête @ 2007-02-10 14:57 UTC (permalink / raw To: gentoo-amd64 [-- Attachment #1: Type: text/plain, Size: 590 bytes --] On Sat, 2007-10-02 at 09:47 +0000, Peter Humphrey wrote: > 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. > > 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? The option you are looking for is RC_USE_CONFIG_PROFILE in /etc/conf.d/rc -- Olivier Crête tester@gentoo.org Gentoo Developer [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-amd64] local.start conditional on soft-level 2007-02-10 14:57 ` Olivier Crête @ 2007-02-11 3:59 ` Peter Humphrey 0 siblings, 0 replies; 6+ messages in thread From: Peter Humphrey @ 2007-02-11 3:59 UTC (permalink / raw To: gentoo-amd64 On Saturday 10 February 2007 14:57:25 Olivier Crête wrote: > On Sat, 2007-10-02 at 09:47 +0000, I wrote: > > 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? > > The option you are looking for is RC_USE_CONFIG_PROFILE > in /etc/conf.d/rc That'll be why I can't find it on the Web site then! Thanks Olivier. -- Rgds Peter -- gentoo-amd64@gentoo.org mailing list ^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-amd64] Re: local.start conditional on soft-level 2007-02-10 9:47 [gentoo-amd64] local.start conditional on soft-level Peter Humphrey 2007-02-10 14:57 ` Olivier Crête @ 2007-02-10 15:06 ` Duncan 2007-02-11 4:02 ` Peter Humphrey 1 sibling, 1 reply; 6+ messages in thread From: Duncan @ 2007-02-10 15:06 UTC (permalink / raw To: gentoo-amd64 Peter Humphrey <prh@gotadsl.co.uk> posted 200702100947.41219.prh@gotadsl.co.uk, 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 -- gentoo-amd64@gentoo.org mailing list ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-amd64] Re: local.start conditional on soft-level 2007-02-10 15:06 ` [gentoo-amd64] " Duncan @ 2007-02-11 4:02 ` Peter Humphrey 2007-02-11 16:11 ` Duncan 0 siblings, 1 reply; 6+ messages in thread From: Peter Humphrey @ 2007-02-11 4:02 UTC (permalink / raw To: gentoo-amd64 On Saturday 10 February 2007 15:06:56 Duncan wrote: > Peter Humphrey <prh@gotadsl.co.uk> posted > 200702100947.41219.prh@gotadsl.co.uk, 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? [lecture snipped] Of course I'm using the init script. The lm_sensors documents specify running "sensors -s" in addition to that. Sheesh. -- Rgds Peter -- gentoo-amd64@gentoo.org mailing list ^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-amd64] Re: local.start conditional on soft-level 2007-02-11 4:02 ` Peter Humphrey @ 2007-02-11 16:11 ` Duncan 0 siblings, 0 replies; 6+ messages in thread From: Duncan @ 2007-02-11 16:11 UTC (permalink / raw To: gentoo-amd64 Peter Humphrey <prh@gotadsl.co.uk> posted 200702110402.44090.prh@gotadsl.co.uk, excerpted below, on Sun, 11 Feb 2007 04:02:44 +0000: > On Saturday 10 February 2007 15:06:56 Duncan wrote: >> Peter Humphrey <prh@gotadsl.co.uk> posted >> 200702100947.41219.prh@gotadsl.co.uk, 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? > > [lecture snipped] > > Of course I'm using the init script. The lm_sensors documents specify > running "sensors -s" in addition to that. Sheesh. What documents? The generic ones that don't account for the fact that Gentoo's initscript already takes care of it, you just have to add it to the appropriate runlevel? If you read the initscript, you'll see it does in fact include exactly that initialization command (sensors -s). Take a look yourself if you wish. Unless there's a bug in the script, that should be all you need. If there's a bug in the script and it's not working, then file a bug, and until it's fixed you'll likely need a workaround, but that's not what you said. Anyway, lecture or not, the file I pointed you at and its comment regarding the softlevel conditional initscripts was correct, regardless of why you want to use it. It just so happens you shouldn't need to use it in the way you proposed, tho you /might/ wish to use it with the lm_sensors initscript. That's what I was saying in that "lecture". To quote you, "Sheesh." -- 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 -- gentoo-amd64@gentoo.org mailing list ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-02-11 16:13 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-02-10 9:47 [gentoo-amd64] local.start conditional on soft-level Peter Humphrey 2007-02-10 14:57 ` Olivier Crête 2007-02-11 3:59 ` Peter Humphrey 2007-02-10 15:06 ` [gentoo-amd64] " Duncan 2007-02-11 4:02 ` Peter Humphrey 2007-02-11 16:11 ` Duncan
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox