[UPHPU] apache error log not rotating

Ray Hunter bigdog at venticon.com
Mon Sep 3 17:55:27 MDT 2007


> /var/log/httpd/*log {
>     missingok
>     notifempty
>     sharedscripts
>     postrotate
>   /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
>     endscript
> }

basically you are reloading apache with the new config files so you can write to
them.

you could also do this:

postrotate
  /etc/init.d/httpd reload > /dev/null 2>&1 || true 	#ala gentoo
endscript

--
thebigdog


More information about the UPHPU mailing list