--

why do you have to HUP the process?
can't you just do this?

gzip access_log; cp /dev/null > access_log

this has worked for me with roxen and apache.
i always make sure that an empty log file exists 
before the very first startup or you may end up
with a big empty file te same size as the original log.

echo -n '' > access_log

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of John Liddle
> Sent: Tuesday, June 29, 1999 6:24 AM
> To: Java Apache Users
> Subject: Common problem ??
> 
> 
> --
> 
> 
> Hi
> 
> I have installed apache-jserv1_0b5 with apache 1.3.6 on redhat linux 5.2.
> All works well until I start getting the following message in the
> error_log file.
> 
> "ApacheJServ/1.0b5: Exception creating the server
> socket:java.net.BindException: Address already in use"
> 
> This problem appears to manifest immediately after the weekly logrotation
> cron job runs.
> 
> /var/log/httpd/access_log {
>     postrotate
>         /usr/bin/killall -HUP httpd
>     endscript
> }
> /var/log/httpd/agent_log {
>     postrotate
>         /usr/bin/killall -HUP httpd
>     endscript
> }
> /var/log/httpd/error_log {
>     postrotate
>         /usr/bin/killall -HUP httpd
>     endscript
> }
> /var/log/httpd/referer_log {
>     postrotate
>         /usr/bin/killall -HUP httpd
>     endscript
> }
> How can I stop these messages appearing yet still rotate log files?
> 
> Cheers
> 
> -John
> 
> 
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> READ THE FAQ!!!!     <http://java.apache.org/faq/>
> Archives and Other:  <http://java.apache.org/main/mail.html/>
> Problems?:           [EMAIL PROTECTED]
> 


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to