Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38478 - Apache2 init.d script fails at start-stop-daemon
Summary: Apache2 init.d script fails at start-stop-daemon
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-16 19:05 UTC by Jason Alexander
Modified: 2004-01-17 03:49 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 Jason Alexander 2004-01-16 19:05:02 UTC
I have ACCEPT_KEYWORDS="~x86"  in my make.conf
I did an emerge apache.  
Apache installs.  
I try to do /etc/init.d/apache2 start
This fails with an error

Notice the Init script.  The start function has a --  and then -k which is not an option for start-stop-daemon

start() {
        checkconfig || return 1
        ebegin "Starting apache2"
        [ -f /var/log/apache2/ssl_scache ] && rm /var/log/apache2/ssl_scache
        env -i PATH=$PATH /sbin/start-stop-daemon --quiet \
                --start --startas /usr/sbin/apache2 \
                --pidfile ${PIDFILE} -- -k start ${APACHE2_OPTS}
        eend $?
}


Reproducible: Always
Steps to Reproduce:
1.emerge apache
2./etc/init.d/apache2 start
3. Apache does not start

apache2ctl start works just fine and apache starts
Comment 1 Jason Alexander 2004-01-16 19:06:23 UTC
Oh sorry this is Apache Version 2.0.48-r2 
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-17 03:49:05 UTC
*arms LART*
you didn't do an etc-update of /etc/conf.d/apache2 ....
it should contain PIDFILE and RESTARTSTYLE !

i've put a catch into the checkconfig() block of /etc/init.d/apache2 for the next person that reports this 'bug' (you are the fourth...)