RE: [users@httpd] access_log is not being written into

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





/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, Ralph.Grothe@xxxxxxxxxxxxxx wrote:

> Date: Wed, 15 Mar 2006 17:19:45 +0100
> From: Ralph.Grothe@xxxxxxxxxxxxxx
> Reply-To: users@xxxxxxxxxxxxxxxx
> To: users@xxxxxxxxxxxxxxxx
> Subject: RE: [users@httpd] 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:hamjavar@xxxxxxx]
> > Sent: Wednesday, March 15, 2006 4:56 PM
> > To: users@xxxxxxxxxxxxxxxx
> > Subject: [users@httpd] 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: users-unsubscribe@xxxxxxxxxxxxxxxx
> >    "   from the digest:
> users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> > 
> > 
> 
> ---------------------------------------------------------------------
> 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: users-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 
> 

---------------------------------------------------------------------
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: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux