Bug 82311 - net-www/apache dependency list should include lynx
|
Bug#:
82311
|
Product: Gentoo Linux
|
Version: 1.4
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: minor
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: apache-bugs@gentoo.org
|
Reported By: dave@bonnell.org
|
|
Component: Applications
|
|
|
URL:
|
|
Summary: net-www/apache dependency list should include lynx
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2005-02-16 21:42 0000
|
Emerged apache fine. Ran "apache2ctl status" to check if it was automatically
started and apache2ctl failed with error that "lynx" was not found.
Reproducible: Always
Steps to Reproduce:
1. System without apache or lynx
2. emerge apache
3. /usr/sbin/apache2ctl status
Actual Results:
Failed with error "lynx: program not found"
Expected Results:
"emerge apache" should have installeld lynx since it is a dependency (or at
least should be!).
net-www/apache version 2.0.52-r1
Apologies for the delay.
We decided not to list lynx as a dependency for apache for just two actions of a script. Instead, we've patched apache{,2}ctl to first check for lynx, and die if it's not found (instructing the user to emerge it).
Resolving FIXED.
*** Bug 103769 has been marked as a duplicate of this bug. ***
*** Bug 112919 has been marked as a duplicate of this bug. ***
*** Bug 192322 has been marked as a duplicate of this bug. ***
*** Bug 192689 has been marked as a duplicate of this bug. ***
/etc/init.d/apache2 in apache-2.2.6 needs to be patched as well
*** Bug 194990 has been marked as a duplicate of this bug. ***
*** Bug 195959 has been marked as a duplicate of this bug. ***
(In reply to comment #10)
> Stuff from comment #7 is still valid.
>
Marry Xmas, The current init.d script is a heap of shit, but they apache peepz
at gentoo are not interested in fixing it. So here is one a put together.
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
opts="configtest fullstatus graceful gracefulstop modules reload"
depend() {
need net
use mysql dns logger netmount postgresql
after sshd
}
configtest() {
ebegin "Checking Apache Configuration"
checkconfig
eend $?
}
checkconfig() {
SERVERROOT="${SERVERROOT:-/usr/lib/apache2}"
if [ ! -d ${SERVERROOT} ]; then
eerror "SERVERROOT does not exist: ${SERVERROOT}"
return 1
fi
CONFIGFILE="${CONFIGFILE:-/etc/apache2/httpd.conf}"
[ "${CONFIGFILE#/}" = "${CONFIGFILE}" ] &&
CONFIGFILE="${SERVERROOT}/${CONFIGFILE}"
if [ ! -r "${CONFIGFILE}" ]; then
eerror "Unable to read configuration file: ${CONFIGFILE}"
return 1
fi
APACHE2_OPTS="${APACHE2_OPTS} -d ${SERVERROOT}"
APACHE2_OPTS="${APACHE2_OPTS} -f ${CONFIGFILE}"
[ -n "${STARTUPERRORLOG}" ] && APACHE2_OPTS="${APACHE2_OPTS} -E
${STARTUPERRORLOG}"
APACHE2="/usr/sbin/apache2"
${APACHE2} ${APACHE2_OPTS} -t 1>/dev/null 2>&1
ret=$?
if [ $ret -ne 0 ]; then
eerror "Apache2 has detected a syntax error in your
configuration files:"
${APACHE2} ${APACHE2_OPTS} -t
fi
return $ret
}
start() {
checkconfig || return 1
ebegin "Starting apache2"
[ -f /var/log/apache2/ssl_scache ] && rm /var/log/apache2/ssl_scache
#Original Code: start-stop-daemon --start --exec ${APACHE2} --
${APACHE2_OPTS} -k start
${APACHE2} ${APACHE2_OPTS} -k start
eend $?
}
stop() {
checkconfig || return 1
ebegin "Stopping apache2"
#Original Code: start-stop-daemon --stop --retry -TERM/5/-KILL/5 --exec
${APACHE2} --pidfile /var/run/apache2.pid
${APACHE2} ${APACHE2_OPTS} -k stop
eend $?
}
reload() {
RELOAD_TYPE="${RELOAD_TYPE:-graceful}"
checkconfig || return 1
if [ "${RELOAD_TYPE}" = "restart" ]; then
svc_restart
# Original Code
#RELOAD_SIGNAL="HUP"
#start-stop-daemon --stop --oknodo --signal HUP --exec
${APACHE2} --pidfile /var/run/apache2.pid
elif [ "${RELOAD_TYPE}" = "graceful" ]; then
ebegin "Reloading apache2"
${APACHE2} ${APACHE2_OPTS} -k graceful
eend $?
# Original Code
#RELOAD_SIGNAL="USR1"
#start-stop-daemon --stop --oknodo --signal USR1 --exec
${APACHE2} --pidfile /var/run/apache2.pid
else
eerror "${RELOAD_TYPE} is not a valid RELOAD_TYPE. Please edit
/etc/conf.d/apache2"
fi
}
modules() {
checkconfig || return 1
${APACHE2} ${APACHE2_OPTS} -M 2>&1
}
fullstatus() {
# This is kind of a usless feature...
checkconfig || return 1
if pgrep -f "${APACHE2} .*" >/dev/null ; then
einfo "http status:\tstarted"
else
eerror "http status:\tstopped"
fi
}
(In reply to comment #11)
>
> Marry Xmas, The current init.d script is a heap of shit, but they apache peepz
> at gentoo are not interested in fixing it. So here is one a put together.
>
WTF?
fixed ...