Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
*/etc/init.d/apache2 ist leer (SOLVED)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
_hephaistos_
Advocate
Advocate


Joined: 07 Apr 2004
Posts: 2694
Location: salzburg, austria

PostPosted: Mon May 10, 2004 9:37 pm    Post subject: */etc/init.d/apache2 ist leer (SOLVED) Reply with quote

hallo,

weiß auch nicht wieso, aber seit dem heutigem apache2 update ist meine /etc/init.d/apache2 leer

hat zufällig jemand die original datei oder weiß, wie ich diese wieder krieg (wenn möglich ohne neu zu emergen - weils so lange dauert)?

das wär lieb :)

thx in advance


Last edited by _hephaistos_ on Tue May 11, 2004 4:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
x000x
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jun 2002
Posts: 86
Location: Germany - Hamburg

PostPosted: Mon May 10, 2004 10:39 pm    Post subject: Reply with quote

Code:
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/net-www/apache/files/2.0.49/apache2.initd,v 1.4 2004/04/08 19:50:05 stuart Exp $

opts="${opts} reload"

[ "x${SERVERROOT}" != "x" ] && APACHE2_OPTS="${APACHE2_OPTS} -d ${SERVERROOT}"
[ "x${CONFIGFILE}" != "x" ] && APACHE2_OPTS="${APACHE2_OPTS} -f ${CONFIGFILE}"
[ "x${STARTUPERRORLOG}" != "x" ] && APACHE2_OPTS="${APACHE2_OPTS} -E ${STARTUPERRORLOG}"
# set a default for PIDFILE/RESTARTSTYLE for those that FAILED to follow
# instructiosn and update the conf.d/apache2 file.
# (bug #38787)
[ -z "${PIDFILE}" ] && PIDFILE=/var/run/apache2.pid
[ -z "${RESTARTSTYLE}" ] && RESTARTSTYLE="graceful"

checkconfig() {
        local myconf="/etc/apache2/conf/apache2.conf"
        if [ "x${CONFIGFILE}" != "x" ]; then
                if [ ${CONFIGFILE:0:1} = "/" ]; then
                        myconf="${CONFIGFILE}"
                else
                        myconf="${SERVERROOT:-/usr/lib/apache2}/${CONFIGFILE}"
                fi
        fi
        if [ ! -r "${myconf}" ]; then
                eerror "Unable to read configuration file: ${myconf}"
                return 1
        fi
    if [ -z "${PIDFILE}" ]; then
        eerror "\$PIDFILE is not set!"
        eerror "Did you etc-update /etc/conf.d/apache2?"
        return 1
    fi
    if [ -z "${RESTARTSTYLE}" ]; then
        eerror "\$RESTARTSTYLE is not set!"
        eerror "Did you etc-update /etc/conf.d/apache2?"
        return 1
    fi
        /usr/sbin/apache2 -t ${APACHE2_OPTS} 1>/dev/null 2>&1
        ret=$?
        if [ $ret -ne 0 ]; then
                eerror "Apache2 has detected a syntax error in your configuration files:"
                /usr/sbin/apache2 -t ${APACHE2_OPTS}
        fi
        return $ret
}

depend() {
        need net
        use mysql dns logger netmount
        after sshd
}

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 $?
}

stop() {
        ebegin "Stopping apache2"
        /usr/sbin/apache2ctl stop >/dev/null
        start-stop-daemon -o --quiet --stop --pidfile ${PIDFILE}
        eend $?
}

reload() {
        # restarting apache2 is much easier than apache1. The server handles most of the work for us.
        # see http://httpd.apache.org/docs-2.0/stopping.html for more details
        ebegin "Restarting apache2"
        /usr/sbin/apache2 ${APACHE2_OPTS} -k ${RESTARTSTYLE}
        eend $?
}

Evtl. Versionsnummer beachten?!
_________________
-= Gruss Peter =-
-= alias x000x =-
Peter wrote:
perl -e 'print "\x47\x72\x75\x73\x73\x20\x50\x65\x74\x65\x72\x20\x3b\x2d\x29\x0a";'
Back to top
View user's profile Send private message
_hephaistos_
Advocate
Advocate


Joined: 07 Apr 2004
Posts: 2694
Location: salzburg, austria

PostPosted: Tue May 11, 2004 6:35 am    Post subject: Reply with quote

passt perfekt, thx
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum