Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 191428 - www-servers/apache-2.2.4-r12 - initscript stop fails because of wrongful checkconfig
Summary: www-servers/apache-2.2.4-r12 - initscript stop fails because of wrongful chec...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-05 19:31 UTC by Daniel Lange
Modified: 2007-09-07 21:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Lange 2007-09-05 19:31:53 UTC
In /etc/init.d/apache2 the stop branch has
 checkconfig || return 1
in it, which is illogical, because you can not stop apache
if you have a syntax error in your configs.

It's logical for start or restart. But if you want to stop,
it may moan, but not leave the user unable to stop a daemon
or reverting to kill/killall.

This is especially bad because things that were o.k. in apache 2.0
have been moved/changed in 2.2, so it get's in the way of
upgrading.

Reproducible: Always

Steps to Reproduce:
1. Enter syntax error in an apache config file (or have one from 2.0 times)
2. try /etc/init.d/apche 2 stop or apache2ctl stop


Actual Results:  
checkconfig moans, leaves with error 1, apache still running

Expected Results:  
Should value user request (end apache),
check config on start and restart/graceful only.
Comment 1 Benedikt Böhm (RETIRED) gentoo-dev 2007-09-07 21:24:14 UTC
this is to prevent config errors on /etc/init.d/apache2 restart and it should stay like this