Mike -
Tried both methods. I like the second method as it tells me whats
happening...
[root@niteowl /root]# /etc/rc.d/init.d/httpd restart
Shutting down http: httpd
Starting httpd: httpd
[root@niteowl /root]#
but then again, BOTH work. Thanks again for the informative tip!!
Michael Weiner
The UserFriendly Network
---
Mike Johnson wrote:
> 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.
>
> Mike
>
--
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.