Gentoo Archives: gentoo-announce

From: Martin Schlemmer <azarah@g.o>
To: gentoo-announce@g.o
Subject: [gentoo-announce] new rc-scripts dependancy
Date: Thu, 15 Nov 2001 17:32:44
Message-Id: 1005867261.1326.8.camel@nosferatu.lan
1 Hi devs
2
3 Baselayout-1.6.6 was just released. Along with some bugfixes,
4 updates to scripts, etc, it adds a new dependancy, 'use'.
5
6 It basically works the same as the 'need' dependancy, except
7 that it will only start services that is in the current, and
8 'boot' runlevels (or only 'boot' if 'boot' is current).
9
10 This is primarily for use with rc-scripts that have optional
11 dependancies, that should only be started when the deps are
12 actually installed and scheduled to start, for example:
13
14 the netmount script, that should actually have portmap
15 as a dependancy, but do not since it will never start
16 if the user do not have the nfs tools installed.
17
18 Also, it can be used for cases where the dependancy can be
19 one out of a few, for example:
20
21 postfix have sysklogd as dependancy, but people who uses
22 metalog or syslog-ng will have to edit the postfix
23 rc-script, or it will fail to start.
24
25 Another place where latter can be used, is with the 'modules'
26 rc-script (already updated for this). If you use sysklogd,
27 and add it to the 'boot' runlevel, and not the 'default' like
28 in the install guide, bootup will be much cleaner, as sysklogd
29 sets the console loglevel to 3 (only display errors and up).
30 Metalog and syslog-ng will have to be updated by developers
31 who use these two.
32
33 Enouth smalltalk. How it works is as follows (out of postfix):
34
35 depend() {
36 need net sysklogd
37 }
38
39 becomes:
40
41 depend() {
42 need net
43 use sysklogd metalog syslog-ng
44 }
45
46 Anyhow, please test, comment and enjoy :)
47
48
49 Greetings,
50
51 --
52
53 Martin Schlemmer
54 Gentoo Linux Developer, Desktop Team Developer
55 Cape Town, South Africa