pkgsrc-Bugs archive

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

pkg/40141: apache restart not reliable



>Number:         40141
>Category:       pkg
>Synopsis:       apache restart not reliable
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 09 11:50:00 +0000 2008
>Originator:     Gavan Fantom
>Release:        pkgsrc-current
>Organization:
>Environment:
>Description:
This report is about www/apache. I've most recently experienced this with 
apache-1.3.41, although this has been a longstanding problem with this package.

/etc/rc.d/apache restart will fail to restart apache if the server takes too 
long to stop. The server is first stopped, then it is started again, but the 
start action can occur before the server has actually finished stopping.

The start action then presents an error (already running) and does nothing, 
leaving only an apache which is about to exit.

>How-To-Repeat:
Set up apache such that it will take some time to exit. Then try restarting it 
with the rc script. Watch it fail to restart some of the time.

>Fix:
I believe this is down to the stop action not waiting for the server to 
completely exit. That waiting could be made more robust. Alternatively (or in 
addition) the restart action could be made to call directly into apachectl 
restart, which appears to do the right thing.



Home | Main Index | Thread Index | Old Index