Gentoo Archives: gentoo-dev

From: Martin Schlemmer <azarah@g.o>
To: Wout Mertens <wmertens@g.o>
Cc: Wolfram Schlich <lists@×××××××.org>, Gentoo-Dev mailinglist <gentoo-dev@g.o>
Subject: Re: [gentoo-dev] rc-scripts/init: new service dependency
Date: Tue, 06 May 2003 18:45:07
Message-Id: 1052246617.7144.9.camel@nosferatu.lan
In Reply to: Re: [gentoo-dev] rc-scripts/init: new service dependency by Wout Mertens
1 On Tue, 2003-05-06 at 11:40, Wout Mertens wrote:
2
3 > How about subscribe? And you can ask to be called before and/or after the
4 > script you subscribe to:
5 >
6 > subscribe after net.ppp0
7 >
8 > event() {
9 > case $2 in
10 > start|restart)
11 > start
12 > ;;
13 > stop)
14 > stop
15 > ;;
16 > esac
17 > }
18 >
19 > This would make runscript call ddclients event() after net.ppp0 was run,
20 > with $1 set to the script, $2 set to the action and $3 set to before or
21 > after.
22 >
23
24 Well, if you need to start something before, you can just use 'use', or
25 'before/after'.
26
27 I think what he wants, and what will be a unique addition, is being able
28 to tell a script: If you start successfully, start 'foobar'
29
30
31 --
32
33 Martin Schlemmer
34 Gentoo Linux Developer, Desktop/System Team Developer
35 Cape Town, South Africa

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] rc-scripts/init: new service dependency Wout Mertens <wmertens@g.o>