[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Viewing sites before propogation
- Subject: Re: [cobalt-users] Viewing sites before propogation
- From: Gerald Waugh <gwaugh@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed Feb 13 18:54:27 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
On Wednesday 13 February 2002 07:18 pm, Andy Jacobs wrote:
> Hopefully another simple one:
>
> What's the difference between httpd stop followed by httpd start and httpd
> restart?
>
> I just did the mod for viewing sites before propogation and it wouldn't
> work until I did a stop/start rather than restart.
>
You should read the script /etc/rc.d/init.d/httpd its not that dificult
hard-restart)
[ -f /var/run/httpd.pid ] && {
kill `cat /var/run/httpd.pid`
}
rm -f /var/run/httpd.pid
sleep 2
$HTTPD -f /etc/httpd/conf/httpd.conf
;;
restart)
$0 stop
$0 start
;;
reload)
[ -f /var/run/httpd.pid ] && {
kill -USR1 `cat /var/run/httpd.pid`
}
;;
Note that restart does just what you did. stop start
But hard-restart is probably closer, stop delay start
Normally when changing configurations you should use reload
which does a graceful restart, sends init to the process.
--
Gerald Waugh