🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #54267

Re: Apache can't bind during log rotate

#54267
From: seem
Date: Sat, 15 Nov 1997 00:00
45 lines
1763 bytes
In <01bced0a$be29d640$c401a8c0@gmp120>, "Graham Miller" <graham@gmcs.com.au> writes:
]Hi there,

]I have a Red Hat Linux 4.2 system running Apache out of the box. All works
]well except I kept getting console messages overnight:

]httpd: could not bind to port 80
]bind: address already in use

]I have changed the crontab file to activate .daily during the day and they
]seem to come while the logs are being rotated.

]I have not played with the /etc/logrotate.d/apache file which uses:

]postrotate
]	killall -HUP httpd
]endscript

]Elsewhere on the Web (the apache site I think) I have seen the following
]recommended:

]/kill -HUP `cat /var/run/httpd.pid`

]Can anyone shed some light on this? And is it likely that logrotate is the
]culprit?


It's exremely likely.

I wrote my own routine to rotate logs and tested it here with a newer 
    version of Apache than's shipped with RH4.2.

Implemented it on www2.ami.com.au and found my server going offline at 
    midnight.

I've dowloaded & compiled apache 1.2.4 but not yet installed it. AFAIK 
    this will cure the problem.



Cheers
John Summerfield
OS/2 support @ http://www.ami.com.au/os2/
   Configuration, networking, searchable IBM ftp site index.
Technical Details
Message-ID: <c1.01.2JHrXS$1CX@maximus.os2.ami.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <01bced0a$be29d640$c401a8c0@gmp120>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,13295409da17651e
X-Google-Attributes: gid102983,public
From: seem@mywebpages@www.ami.com.au/os2/@
Subject: Re: Apache can't bind during log rotate
Date: 1997/11/15
Message-ID: <c1.01.2JHrXS$1CX@maximus.os2.ami.com>
X-Deja-AN: 289772051
Sender: seem@maximus.my.ami.com.au
References: <01bced0a$be29d640$c401a8c0@gmp120>
Organization: os/2 support
Reply-To: see.my.web.pages@www.ami.com.au/os2
Newsgroups: aus.computers.linux