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 |