* [gentoo-server] Refreshing vhosts without restarting apache
@ 2005-08-16 12:01 Darko Luketic
2005-08-16 12:04 ` Ian P. Christian
2005-08-16 16:19 ` radu herinean
0 siblings, 2 replies; 8+ messages in thread
From: Darko Luketic @ 2005-08-16 12:01 UTC (permalink / raw
To: gentoo-server
Hello,
i'm not sure if this is the right place to ask.
I was searching for a way to refresh apache2's virtualhosts without restarting apache.
Currently i'm creating a reloadme file which gets checked for existence every 15min by vixie-cron
and if it exists, apache2 is reloading, with nptl no problem, but sometimes the reload fails for unknown (unlogged) reasons.
and imho thats not really the way it should be, apache should be restarted once a day not potentially every 15 minutes.
--
Darko Luketic
http://www.power-forums.com/
Free International Forums
webmaster@power-forums.com
--
gentoo-server@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-server] Refreshing vhosts without restarting apache
2005-08-16 12:01 [gentoo-server] Refreshing vhosts without restarting apache Darko Luketic
@ 2005-08-16 12:04 ` Ian P. Christian
2005-08-17 4:55 ` A. Khattri
2005-08-16 16:19 ` radu herinean
1 sibling, 1 reply; 8+ messages in thread
From: Ian P. Christian @ 2005-08-16 12:04 UTC (permalink / raw
To: gentoo-server; +Cc: Darko Luketic
[-- Attachment #1: Type: text/plain, Size: 367 bytes --]
On Tuesday 16 August 2005 13:01, Darko Luketic wrote:
> and imho thats not really the way it should be, apache should be restarted
> once a day not potentially every 15 minutes.
I don't see why it should be restarted at all. If you're not binding to any
new ports, a reload should be fine rather then a restart.
--
Ian P. Christian ~ http://pookey.co.uk
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-server] Refreshing vhosts without restarting apache
2005-08-16 12:04 ` Ian P. Christian
@ 2005-08-17 4:55 ` A. Khattri
2005-08-17 5:43 ` Michael Crute
0 siblings, 1 reply; 8+ messages in thread
From: A. Khattri @ 2005-08-17 4:55 UTC (permalink / raw
To: gentoo-server
On Tue, 16 Aug 2005, Ian P. Christian wrote:
> On Tuesday 16 August 2005 13:01, Darko Luketic wrote:
> > and imho thats not really the way it should be, apache should be restarted
> > once a day not potentially every 15 minutes.
>
> I don't see why it should be restarted at all. If you're not binding to any
> new ports, a reload should be fine rather then a restart.
Just curious: would "apachectl graceful" load new vhosts added since the
last restart?
--
--
gentoo-server@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-server] Refreshing vhosts without restarting apache
2005-08-17 4:55 ` A. Khattri
@ 2005-08-17 5:43 ` Michael Crute
2005-08-17 11:15 ` Jeroen Geilman
0 siblings, 1 reply; 8+ messages in thread
From: Michael Crute @ 2005-08-17 5:43 UTC (permalink / raw
To: gentoo-server
[-- Attachment #1: Type: text/plain, Size: 1102 bytes --]
The gaceful command will actually cause apache to restart but only after all
pending transfers complete. I believe that this is the default behavior of
/etc/init.d/apache2 restart the command you are looking for is reload.
-Mike
On 8/17/05, A. Khattri <ajai@bway.net> wrote:
>
> On Tue, 16 Aug 2005, Ian P. Christian wrote:
>
> > On Tuesday 16 August 2005 13:01, Darko Luketic wrote:
> > > and imho thats not really the way it should be, apache should be
> restarted
> > > once a day not potentially every 15 minutes.
> >
> > I don't see why it should be restarted at all. If you're not binding to
> any
> > new ports, a reload should be fine rather then a restart.
>
> Just curious: would "apachectl graceful" load new vhosts added since the
> last restart?
>
>
> --
>
> --
> gentoo-server@gentoo.org mailing list
>
>
--
________________________________
Michael E. Crute
Software Developer
SoftGroup Development Corporation
Linux, because reboots are for installing hardware.
"In a world without walls and fences, who needs windows and gates?"
[-- Attachment #2: Type: text/html, Size: 1486 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-server] Refreshing vhosts without restarting apache
2005-08-17 5:43 ` Michael Crute
@ 2005-08-17 11:15 ` Jeroen Geilman
2005-08-17 12:00 ` Christian Bricart
2005-08-17 12:04 ` Phillip Berry
0 siblings, 2 replies; 8+ messages in thread
From: Jeroen Geilman @ 2005-08-17 11:15 UTC (permalink / raw
To: gentoo-server
Top-posting corrected.
> On 8/17/05, *A. Khattri* <ajai@bway.net <mailto:ajai@bway.net>> wrote:
>
> On Tue, 16 Aug 2005, Ian P. Christian wrote:
>
> > On Tuesday 16 August 2005 13:01, Darko Luketic wrote:
> > > and imho thats not really the way it should be, apache should
> be restarted
> > > once a day not potentially every 15 minutes.
> >
> > I don't see why it should be restarted at all. If you're not
> binding to any
> > new ports, a reload should be fine rather then a restart.
>
> Just curious: would "apachectl graceful" load new vhosts added
> since the
> last restart?
>
>
> --
>
> --
> gentoo-server@gentoo.org <mailto:gentoo-server@gentoo.org> mailing
> list
>
> Michael Crute wrote:
>
> The gaceful command will actually cause apache to restart but only
> after all pending transfers complete. I believe that this is the
> default behavior of /etc/init.d/apache2 restart the command you are
> looking for is reload.
>
No, that's definitely NOT what he is after - since you are adding new
vhosts these will never be involved in any ongoing transfers.
Instead, reload will break off all current transfers - not a good idea
on a heavily loaded server.
Graceful is fine.
--
gentoo-server@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-server] Refreshing vhosts without restarting apache
2005-08-17 11:15 ` Jeroen Geilman
@ 2005-08-17 12:00 ` Christian Bricart
2005-08-17 12:04 ` Phillip Berry
1 sibling, 0 replies; 8+ messages in thread
From: Christian Bricart @ 2005-08-17 12:00 UTC (permalink / raw
To: gentoo-server
> Top-posting corrected.
>
>> On 8/17/05, *A. Khattri* <ajai@bway.net <mailto:ajai@bway.net>> wrote:
>>
>> On Tue, 16 Aug 2005, Ian P. Christian wrote:
>>
>> > On Tuesday 16 August 2005 13:01, Darko Luketic wrote:
>> > > and imho thats not really the way it should be, apache should
>> be restarted
>> > > once a day not potentially every 15 minutes.
>> >
>> > I don't see why it should be restarted at all. If you're not
>> binding to any
>> > new ports, a reload should be fine rather then a restart.
>>
>> Just curious: would "apachectl graceful" load new vhosts added
>> since the
>> last restart?
>>
>>
>> --
>>
>> --
>> gentoo-server@gentoo.org <mailto:gentoo-server@gentoo.org> mailing
>> list
>>
>> Michael Crute wrote:
>>
>> The gaceful command will actually cause apache to restart but only
>> after all pending transfers complete. I believe that this is the
>> default behavior of /etc/init.d/apache2 restart the command you are
>> looking for is reload.
>>
> No, that's definitely NOT what he is after - since you are adding new
> vhosts these will never be involved in any ongoing transfers.
> Instead, reload will break off all current transfers - not a good idea
> on a heavily loaded server.
> Graceful is fine.
what about just calling:
# killall -HUP apache2
this will cause the httpd to reload it's config, not?
Christian
--
gentoo-server@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-server] Refreshing vhosts without restarting apache
2005-08-17 11:15 ` Jeroen Geilman
2005-08-17 12:00 ` Christian Bricart
@ 2005-08-17 12:04 ` Phillip Berry
1 sibling, 0 replies; 8+ messages in thread
From: Phillip Berry @ 2005-08-17 12:04 UTC (permalink / raw
To: gentoo-server
The init file for apache 1.3 has a reload function that is exactly the same as
apachectl graceful aka kill -USR1. So /etc/init.d/apache reload is the same
as apachectl graceful
Phil
On Wednesday 17 August 2005 21:15, Jeroen Geilman wrote:
> No, that's definitely NOT what he is after - since you are adding new
> vhosts these will never be involved in any ongoing transfers.
> Instead, reload will break off all current transfers - not a good idea
> on a heavily loaded server.
> Graceful is fine.
> > Michael Crute wrote:
> >
> > The gaceful command will actually cause apache to restart but only
> > after all pending transfers complete. I believe that this is the
> > default behavior of /etc/init.d/apache2 restart the command you are
> > looking for is reload.
> Top-posting corrected.
>
> > On 8/17/05, *A. Khattri* <ajai@bway.net <mailto:ajai@bway.net>> wrote:
> >
> > On Tue, 16 Aug 2005, Ian P. Christian wrote:
> > > On Tuesday 16 August 2005 13:01, Darko Luketic wrote:
> > > > and imho thats not really the way it should be, apache should
> >
> > be restarted
> >
> > > > once a day not potentially every 15 minutes.
> > >
> > > I don't see why it should be restarted at all. If you're not
> >
> > binding to any
> >
> > > new ports, a reload should be fine rather then a restart.
> >
> > Just curious: would "apachectl graceful" load new vhosts added
> > since the
> > last restart?
> >
> >
> > --
> >
> > --
> > gentoo-server@gentoo.org <mailto:gentoo-server@gentoo.org> mailing
> > list
> >
>
--
gentoo-server@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-server] Refreshing vhosts without restarting apache
2005-08-16 12:01 [gentoo-server] Refreshing vhosts without restarting apache Darko Luketic
2005-08-16 12:04 ` Ian P. Christian
@ 2005-08-16 16:19 ` radu herinean
1 sibling, 0 replies; 8+ messages in thread
From: radu herinean @ 2005-08-16 16:19 UTC (permalink / raw
To: gentoo-server
another "workarround" that i am currently using is mass vhost-ing.
you can switch to templated vhosting and all you have to do when you add a
new host is add a new folder and update your dns. no reload, no restart, no
nothing. it just works.
you can find plenty of stuff on this on the net and there is also an example
config file in the /conf folder somewhere.
----- Original Message -----
From: "Darko Luketic" <webmaster@power-forums.com>
To: <gentoo-server@lists.gentoo.org>
Sent: Tuesday, August 16, 2005 3:01 PM
Subject: [gentoo-server] Refreshing vhosts without restarting apache
> Hello,
>
> i'm not sure if this is the right place to ask.
> I was searching for a way to refresh apache2's virtualhosts without
> restarting apache.
> Currently i'm creating a reloadme file which gets checked for existence
> every 15min by vixie-cron
> and if it exists, apache2 is reloading, with nptl no problem, but
> sometimes the reload fails for unknown (unlogged) reasons.
> and imho thats not really the way it should be, apache should be restarted
> once a day not potentially every 15 minutes.
>
> --
> Darko Luketic
> http://www.power-forums.com/
> Free International Forums
> webmaster@power-forums.com
> --
> gentoo-server@gentoo.org mailing list
>
>
--
gentoo-server@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-08-17 12:06 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-16 12:01 [gentoo-server] Refreshing vhosts without restarting apache Darko Luketic
2005-08-16 12:04 ` Ian P. Christian
2005-08-17 4:55 ` A. Khattri
2005-08-17 5:43 ` Michael Crute
2005-08-17 11:15 ` Jeroen Geilman
2005-08-17 12:00 ` Christian Bricart
2005-08-17 12:04 ` Phillip Berry
2005-08-16 16:19 ` radu herinean
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox