I just use 'killall -HUP httpd' - quick/easy.
-----------------------------------------------------------
Matt Housh email: [EMAIL PROTECTED]
MicroComputer Specialist University of Tulsa
Engineering and Natural Sciences
"Pardon me, stewardess. I speak Jive."
On Thu, 21 May 1998, Mike Johnson wrote:
> At 07:18 AM 5/21/98 -0400, you wrote:
> >Good Day all -
> >
> >A quickie question for you all. What is the quickest way to restart the
> >Apache http daemon and respawn all the daughters once a change to the
> >httpd.conf has been made? I am adding some virtual www hosts and want to
> >restart the daemon as well as the spawns so this becomes effective.
>
> Well, there's a couple ways to do it. The Apache folk recomend you
> use your httpd.pid file (mine is /var/run/httpd.pid) and send a HUP
> to the parent pid. So, for me, I use
> kill -HUP `cat /var/run/httpd.pid` (yes, with the ` in there)
> and it restarts all happy like. I -think- there's a signal that you
> can send to the parent that will cause the children to finish processing
> requests before they are restarated, but I don't remember which one.
> You should be able to find that info at www.apache.org.
>
> Oh, another way to restart Apache is to use the RedHat supplied
> script in /etc/rc.d/init.d called httpd. The syntax would be
> /etc/rc.d/init.d/httpd restart
> That assumes that you're using the RPM from RedHat for Apache
> and/or have hacked the Apache source to make it work correctly
> (or have modified the script).
>
> Those are probably the two easiest ways, but I lean towards the
> first way at the recommendation of the Apache group.
>
> >Thanks in advance
> >Michael Weiner
> >The UserFriendly Network
>
> Mike
>
> --
> Mike Johnson - [EMAIL PROTECTED]
> Network Engineer - Prototype Development
> GTE Government Systems - All opinions are mine, not GTE's.
>
>
> --
> PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
> To unsubscribe: mail [EMAIL PROTECTED] with
> "unsubscribe" as the Subject.
>
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.