[jboss-jira] [JBoss JIRA] Created: (JBAS-4973) SuSE daemon script doesn't release standard input

Brian Kalbfus (JIRA) jira-events at lists.jboss.org
Wed Nov 14 10:11:18 EST 2007


SuSE daemon script doesn't release standard input
-------------------------------------------------

                 Key: JBAS-4973
                 URL: http://jira.jboss.com/jira/browse/JBAS-4973
             Project: JBoss Application Server
          Issue Type: Patch
      Security Level: Public (Everyone can see)
          Components: System service
    Affects Versions: JBossAS-4.2.2.GA, JBossAS-4.2.1.GA,  JBossAS-5.0.0.Beta3
         Environment: SuSE Linux
            Reporter: Brian Kalbfus
         Assigned To: Dimitris Andreadis
            Priority: Minor


After modifying locations in the script, I ran the jboss_init_suse.sh script.  It runs fine but the shell I launched it from hangs when I exit.  I resolved this by adding stdin redirection to /dev/null.  The same may be true for other daemon scripts.

Original script snippet:

case "$1" in
start)
    echo -n "Starting JBoss application server: "
    cd $JBOSS_HOME/bin
    if [ -z "$SUBIT" ]; then
        eval $CMD_START >${JBOSS_CONSOLE} 2>&1 &
    else
        $SUBIT "$CMD_START >${JBOSS_CONSOLE} 2>&1 &"
    fi

    # Remember status and be verbose
    rc_status -v
    ;;


changed it to:
case "$1" in 
start)
    echo -n "Starting JBoss application server: "
    cd $JBOSS_HOME/bin
    if [ -z "$SUBIT" ]; then
        eval $CMD_START >${JBOSS_CONSOLE} 2>&1 </dev/null &
    else
        $SUBIT "$CMD_START >${JBOSS_CONSOLE} 2>&1 </dev/null &" 
    fi

    # Remember status and be verbose
    rc_status -v
    ;;


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list