Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Initscript Umgebungsvariablen & JBoss
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
maximum_one
n00b
n00b


Joined: 12 Oct 2004
Posts: 59

PostPosted: Sun Apr 02, 2006 9:22 am    Post subject: Initscript Umgebungsvariablen & JBoss Reply with quote

Hab da mal eine Frage zu den Initscripts.
Insbesondere zum JBOSS Initscript.

Code:

depend() {
    use net
}

start() {
        ebegin "Starting JBoss"
        if [ -z "$JBOSS_HOME" ]; then
                eerror "The JBOSS_HOME environment variable is not set."
                return 1
        fi
        if [ ! -d ${SERVER_HOME}/${JBOSS_CONF}/tmp ]; then
                mkdir ${SERVER_HOME}/${JBOSS_CONF}/tmp
                chown jboss:jboss ${SERVER_HOME}/${JBOSS_CONF}/tmp
        fi
        cd ${SERVER_HOME}/${JBOSS_CONF}/tmp
        if [ -z "${SUBIT}" ]; then
                eval ${CMD_START} >${JBOSS_CONSOLE} 2>&1 &
        else
                ${SUBIT} "${CMD_START} >${JBOSS_CONSOLE} 2>&1 &"
        fi
        eend $?
}

stop() {
        ebegin "Stopping JBoss"
        if [ -z "$SUBIT" ]; then
                ${CMD_STOP}
        else
                ${SUBIT} "$CMD_STOP"
        fi
        eend $?
}


Woher hat Linux nun die Umgebungsvariablen
${SERVER_HOME}
${JBOSS_CONF}
${SUBIT}
${CMD_START}
${JBOSS_CONSOLE}

Wenn ich in der Shell echo ${SERVER_HOME} usw. mache ist kein String enthalten.
Wieso kann das Initscript den JBOSS-Server trotzdem starten ?

Danke schon mal im Voraus
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