httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koen Vingerhoets" <>
Subject [users@httpd] Gracefull Apache restart?
Date Fri, 11 Oct 2002 13:40:40 GMT

I made this once to stop Apache, delete the access_log, and start apache.
Please make comments on the script as I think it crashes our site.
Is there a way to gracefully restart Apache?? Or won't that allow me to
remove the log files??
I have absolutely no idea what I've written, it's an extensive copy paste
from all over the web.


#/etc/init.d/httpd stop
#su - root -c "/bin/rm -f /home/httpd/vhosts/"
#/bin/rm -f /home/httpd/vhosts/
/bin/cp /dev/null /home/httpd/vhosts/
#/etc/init.d/httpd start

#end script

Thanks :)


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message