Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7995 - apache start script and apachectl
Summary: apache start script and apachectl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-16 11:38 UTC by Roman Majer
Modified: 2002-09-19 11:04 UTC (History)
3 users (show)

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 Roman Majer 2002-09-16 11:38:32 UTC
/etc/init.d/apache script uses for stopping and restarting  
/usr/sbin/apachectl script... this apachectl script is not aware of 
/etc/conf.d/apache file. 
 
Problem: 
 
If apache server is not started and I use /etc/init.d/apache restart 
the apache is started WITHOUT modules specified in /etc/conf.d/apache 
 
version of ebuild: apache 1.3.26-r3
Comment 1 SpanKY gentoo-dev 2002-09-16 12:56:22 UTC
could you post /etc/conf.d/apache so i could see what you're talking about ?
Comment 2 Roman Majer 2002-09-17 01:13:38 UTC
There is no need to send all /etc/conf.d/apache 'cause there is only 
one line: 
 
APACHE_OPTS="-D SSL -D PHP4 -D PERL" 
 
Much more interesting is /etc/init.d/apache restart section: 
 
svc_restart() { 
	ebegin "Gracefully restarting apache" 
	/usr/sbin/apachectl graceful 
	eend $? 
} 
 
As you can see, this script is using default apache start,stop script 
and this apachectl is not aware of gentoo's /etc/conf.d/apache file. 
 
So when apache is not running and I call /etc/init.d/apache restart 
(perfectly legal situation), the apache server is started WITHOUT 
modules defined by /etc/conf.d/apache. 
 
Comment 3 Nicholas Jones (RETIRED) gentoo-dev 2002-09-18 08:26:35 UTC
Fixed this and unmasked -r4 --- Try it and let me know.
Comment 4 Roman Majer 2002-09-19 01:28:47 UTC
Fine... works... 
 
Now there is only one bug with apache start/stop script which I need 
to solve (I have to patch it each time I upgrade) ... 
It's bug #5556... :-)) 
 
Please, please look at it.... 
 
I have local primary DNS (127.0.0.1 in resolv.conf) so solving of this 
bug (#5556) is very important for me... 
 
Thanx a lot for your time.. 
Comment 5 Roman Majer 2002-09-19 02:22:45 UTC
I forgot to say you can close this bug as fixed... 
Comment 6 SpanKY gentoo-dev 2002-09-19 11:04:13 UTC
bug reporters can close their own bugs