/var/log/httpd/*log {
missingok
compress
daily
rotate 9
notifempty
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
endscript
}
The ps command you mentioned both refers to same thing.
Thank you,
Farid
On Wed, 15 Mar 2006, [EMAIL PROTECTED] wrote:
> Date: Wed, 15 Mar 2006 17:19:45 +0100
> From: [EMAIL PROTECTED]
> Reply-To: [email protected]
> To: [email protected]
> Subject: RE: [EMAIL PROTECTED] access_log is not being written into
>
> What's the content of /etc/logrotate.d/httpd,
> could it be you are signalling the wrong process?
>
> You also might want to check if these to relate to the same proc
>
> $ ps -p $(cat /var/run/httpd.pid) -o args
>
> $ ps -p $(pgrep -P 1 -u 0 -x httpd) -o args
>
>
> > -----Original Message-----
> > From: Farid Hamjavar [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, March 15, 2006 4:56 PM
> > To: [email protected]
> > Subject: [EMAIL PROTECTED] access_log is not being written into
> >
> >
> >
> >
> >
> > Apache 2.0.46 on Redhat Linux
> >
> > Greetings;
> >
> > The access_log is being rotated fine.
> > The access_log's permission/ownership ,etc are OK too.
> >
> > It's just that it's not being written into and after
> > its rotation and its size remains zero --
> > until I do manually restart httpd.
> >
> > The rotation is done via /etc/logrotate.d/httpd
> >
> > All these methods were tried to no avail.
> >
> > service httpd graceful > /dev/null
> > service httpd restart > /dev/null
> > /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2>
> > /dev/null || true
> >
> >
> >
> > Any idea why access_log's size remains zero and httpd
> > is not writing anything to it after the rotation?
> >
> >
> > Thank you,
> > Fraid
> >
> >
> -----------------------------------------------------------------
> ----
> > The official User-To-User support forum of the Apache HTTP
> > Server Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > " from the digest:
> [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> " from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]