Gentoo Archives: gentoo-server

From: Christian Bricart <christian@×××××××.de>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] Refreshing vhosts without restarting apache
Date: Wed, 17 Aug 2005 12:03:27
Message-Id: 50761.80.87.162.74.1124280052.squirrel@aachalon.de
In Reply to: Re: [gentoo-server] Refreshing vhosts without restarting apache by Jeroen Geilman
1 > Top-posting corrected.
2 >
3 >> On 8/17/05, *A. Khattri* <ajai@××××.net <mailto:ajai@××××.net>> wrote:
4 >>
5 >> On Tue, 16 Aug 2005, Ian P. Christian wrote:
6 >>
7 >> > On Tuesday 16 August 2005 13:01, Darko Luketic wrote:
8 >> > > and imho thats not really the way it should be, apache should
9 >> be restarted
10 >> > > once a day not potentially every 15 minutes.
11 >> >
12 >> > I don't see why it should be restarted at all. If you're not
13 >> binding to any
14 >> > new ports, a reload should be fine rather then a restart.
15 >>
16 >> Just curious: would "apachectl graceful" load new vhosts added
17 >> since the
18 >> last restart?
19 >>
20 >>
21 >> --
22 >>
23 >> --
24 >> gentoo-server@g.o <mailto:gentoo-server@g.o> mailing
25 >> list
26 >>
27 >> Michael Crute wrote:
28 >>
29 >> The gaceful command will actually cause apache to restart but only
30 >> after all pending transfers complete. I believe that this is the
31 >> default behavior of /etc/init.d/apache2 restart the command you are
32 >> looking for is reload.
33 >>
34 > No, that's definitely NOT what he is after - since you are adding new
35 > vhosts these will never be involved in any ongoing transfers.
36 > Instead, reload will break off all current transfers - not a good idea
37 > on a heavily loaded server.
38 > Graceful is fine.
39
40 what about just calling:
41
42 # killall -HUP apache2
43
44 this will cause the httpd to reload it's config, not?
45
46 Christian
47
48 --
49 gentoo-server@g.o mailing list