First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 82311
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Apache Team - Bugzilla Reports <apache-bugs@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Dave Bonnell <dave@bonnell.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 82311 depends on: Show dependency tree
Bug 82311 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   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!).

------- Comment #1 From Dave Bonnell 2005-02-16 21:49:17 0000 -------
net-www/apache version 2.0.52-r1

------- Comment #2 From Elfyn McBratney (beu) (RETIRED) 2005-02-26 09:45:29 0000 -------
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.

------- Comment #3 From Jakub Moc (RETIRED) 2005-08-26 03:12:19 0000 -------
*** Bug 103769 has been marked as a duplicate of this bug. ***

------- Comment #4 From Jakub Moc (RETIRED) 2005-11-18 08:09:27 0000 -------
*** Bug 112919 has been marked as a duplicate of this bug. ***

------- Comment #5 From Jakub Moc (RETIRED) 2007-09-12 17:18:19 0000 -------
*** Bug 192322 has been marked as a duplicate of this bug. ***

------- Comment #6 From Jakub Moc (RETIRED) 2007-09-16 14:21:46 0000 -------
*** Bug 192689 has been marked as a duplicate of this bug. ***

------- Comment #7 From Wolfgang Thiess 2007-09-16 18:23:50 0000 -------
/etc/init.d/apache2 in apache-2.2.6 needs to be patched as well

------- Comment #8 From Jakub Moc (RETIRED) 2007-10-07 13:09:17 0000 -------
*** Bug 194990 has been marked as a duplicate of this bug. ***

------- Comment #9 From Jakub Moc (RETIRED) 2007-10-15 18:28:01 0000 -------
*** Bug 195959 has been marked as a duplicate of this bug. ***

------- Comment #10 From Jan Kundrát 2007-10-18 14:30:41 0000 -------
Stuff from comment #7 is still valid.

------- Comment #11 From Alex Barker 2007-10-19 01:53:52 0000 -------
(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
}

------- Comment #12 From Benedikt Böhm 2007-10-20 17:15:59 0000 -------
(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 ...

First Last Prev Next    No search results available      Search page      Enter new bug