1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
On Wednesday 15 October 2003 03:36, Eric Sammer wrote: |
5 |
> While not exactly a "show stopper," I find that a number of the init |
6 |
> scripts (namely apache, bind, and maybe cyrus, IIRC) race too quickly |
7 |
> during a 'restart.' |
8 |
> |
9 |
> For instance, my nameservers (all gentoo) with more than ~12 zones take |
10 |
> a second to stop listening on the interfaces and close the logs. Before |
11 |
> they stop, init has already tried to start named again. You see the |
12 |
> problem. |
13 |
> |
14 |
> This leads to failed starts which always makes me panic for a second |
15 |
> before I realize it just ran too fast. Throwing a 'sleep' in there |
16 |
> doesn't always seem like a good idea because the shutdown time is |
17 |
> variable and putting a 'sleep 5' between start and stop makes things |
18 |
> annoying. |
19 |
> |
20 |
> Just food for thought, I suppose. Anyone else notice this? (FWIW, I've |
21 |
> seen this on almost every other linux distro out there as well, but |
22 |
> fixing it wouldn't keep me up at night.) |
23 |
|
24 |
In general that status part of the init scripts deserves some fixing too. The |
25 |
problem is that this status checks whether the service is supposed to be |
26 |
running, not whether it is actually running. If we were to implement a status |
27 |
function we could use that for the restart too (only start when the status |
28 |
returns that it is actually not running anymore, or after a predetermined |
29 |
time has passed, say 10 seconds) |
30 |
|
31 |
Paul |
32 |
|
33 |
- -- |
34 |
Paul de Vrieze |
35 |
Gentoo Developer |
36 |
Mail: pauldv@g.o |
37 |
Homepage: http://www.devrieze.net |
38 |
-----BEGIN PGP SIGNATURE----- |
39 |
Version: GnuPG v1.2.3 (GNU/Linux) |
40 |
|
41 |
iD8DBQE/jQOFbKx5DBjWFdsRAvlMAKC1LTX2b3bsQ3U1LbEk4kLzoPevyACgpicZ |
42 |
h6fTTxUdDdKZMtd5ccTCUhs= |
43 |
=4QMB |
44 |
-----END PGP SIGNATURE----- |
45 |
|
46 |
|
47 |
-- |
48 |
gentoo-dev@g.o mailing list |