Bug 71165

Summary: logrotate of apache logs doesn't properly restart apache
Product: [Retired] Red Hat Linux Reporter: James Pattie <james>
Component: apacheAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: high Docs Contact:
Priority: medium    
Version: 7.2CC: jorton
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-09-11 20:43:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description James Pattie 2002-08-09 14:27:02 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.1a) Gecko/20020702

Description of problem:
When the logrotate of Apache happens, apache gets the HUP signal and proceeds to
shutdown, but never comes back up after the first logrotate.  From the command
line I can do the same command as the logrotate.d/apache script does and apache
will restart only on the first HUP sent.  If you try to restart it by a HUP
again it doesn't restart.  apache will start by doing 'service httpd start'
without blowing any errors and 'service httpd restart' works fine, it is just
the 'kill -HUP' version that is having problems.

All the updates are applied to the box.  The only non-standard thing is I am
running PHP 4.1.2 (rpms built on an updated RH7.2 box) so that Horde 2.1 can work.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.start apache
2.rotate logs (works fine first time)
3.rotate logs (day 2, won't restart)
	

Actual Results:  apache restarts the first day after it has been started, but
won't restart on the next day that logs are rotated.

Expected Results:  apache should have restarted.

Additional info:

Comment 1 Joe Orton 2002-09-11 20:03:13 UTC
Are any error log messages produced produced when you send the HUP manually?
(/var/log/httpd/error_log)

Comment 2 James Pattie 2002-09-11 20:43:07 UTC
I don't remember any errors being output, since I applied the recent php update
and everything is now working correctly.  You can close this bug if you like.  :)

Comment 3 Joe Orton 2002-09-11 20:54:29 UTC
Great. Thanks for the feedback.