Gentoo Archives: gentoo-dev

From: Paul de Vrieze <pauldv@g.o>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Racing in init scripts
Date: Wed, 15 Oct 2003 13:36:17
Message-Id: 200310151536.15898.pauldv@gentoo.org
In Reply to: Re: [gentoo-dev] Racing in init scripts by Corvus Corax
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 On Wednesday 15 October 2003 15:11, Corvus Corax wrote:
5 > Am Wed, 15 Oct 2003 04:42:29 -0400
6 >
7 > This is Corvus Corax, I unfortunately stepped into exactly that "Very Bad
8 > Thing"(tm) when porting some automatic re-connection scripts
9 > (where net-dependant services had to be restarted partially)
10 > to a slower machine, wher "restart" was just too fast for the services, to
11 > come down
12 >
13 > i had to do it via "xxx stop && sleep 5 && xxx start"
14 >
15 > the problem is, a "net.eth0 restart" for example would re-start all net -
16 > dependant services, too. with a "stop -- start" they dont come up again
17 > automaticaly, so i have to handle each running service manually, status
18 > confirmed as "very evil, very nasty thing" (tm)
19 >
20
21 What you could do is add some check to the start script and have it wait in
22 that case. I will however try to look into fixing this "feature" of the init
23 scripts by adding some actual status support (not apache is running when it
24 crashed).
25
26 Paul
27
28 - --
29 Paul de Vrieze
30 Gentoo Developer
31 Mail: pauldv@g.o
32 Homepage: http://www.devrieze.net
33 -----BEGIN PGP SIGNATURE-----
34 Version: GnuPG v1.2.3 (GNU/Linux)
35
36 iD8DBQE/jU1PbKx5DBjWFdsRAmBeAJ9EugA1h5IwvB1VZ4C0BLDco+rZOQCffl5Y
37 PRnPi6SWBJPpeXLxSx7qKzw=
38 =Iuo/
39 -----END PGP SIGNATURE-----
40
41
42 --
43 gentoo-dev@g.o mailing list