Bug 71165 - logrotate of apache logs doesn't properly restart apache
Summary: logrotate of apache logs doesn't properly restart apache
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: apache (Show other bugs)
(Show other bugs)
Version: 7.2
Hardware: i686 Linux
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact: Brian Brock
Depends On:
TreeView+ depends on / blocked
Reported: 2002-08-09 14:27 UTC by James Pattie
Modified: 2007-04-18 16:45 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-09-11 20:43:14 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

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:

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?

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.

Note You need to log in before you can comment on or make changes to this bug.