public inbox for gentoo-announce@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* [gentoo-announce] new rc-scripts dependancy
@ 2001-11-15 23:34 99% Martin Schlemmer
  0 siblings, 0 replies; 1+ results
From: Martin Schlemmer @ 2001-11-15 23:34 UTC (permalink / raw
  To: gentoo-announce

[-- Attachment #1: Type: text/plain, Size: 1663 bytes --]

Hi devs

Baselayout-1.6.6 was just released.  Along with some bugfixes,
updates to scripts, etc, it adds a new dependancy, 'use'.

It basically works the same as the 'need' dependancy, except
that it will only start services that is in the current, and
'boot' runlevels (or only 'boot' if 'boot' is current).

This is primarily for use with rc-scripts that have optional
dependancies, that should only be started when the deps are
actually installed and scheduled to start, for example:

  the netmount script, that should actually have portmap
  as a dependancy, but do not since it will never start
  if the user do not have the nfs tools installed.

Also, it can be used for cases where the dependancy can be
one out of a few, for example:

  postfix have sysklogd as dependancy, but people who uses
  metalog or syslog-ng will have to edit the postfix 
  rc-script, or it will fail to start.

Another place where latter can be used, is with the 'modules'
rc-script (already updated for this).  If you use sysklogd,
and add it to the 'boot' runlevel, and not the 'default' like
in the install guide, bootup will be much cleaner, as sysklogd
sets the console loglevel to 3 (only display errors and up).
Metalog and syslog-ng will have to be updated by developers
who use these two.

Enouth smalltalk.  How it works is as follows (out of postfix):

  depend() {
	need net sysklogd
  }

becomes:

  depend() {
	need net
	use sysklogd metalog syslog-ng
  }

Anyhow, please test, comment and enjoy :)


Greetings,

-- 

Martin Schlemmer
Gentoo Linux Developer, Desktop Team Developer
Cape Town, South Africa


[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2001-11-15 23:34 99% [gentoo-announce] new rc-scripts dependancy Martin Schlemmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox