Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-4973

SuSE daemon script doesn't release standard input

XMLWordPrintable

    • Icon: Patch Patch
    • Resolution: Obsolete
    • Icon: Minor Minor
    • No Release
    • JBossAS-4.2.1.GA, JBossAS-4.2.2.GA, JBossAS-5.0.0.Beta3
    • System service
    • None
    • SuSE Linux

      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

      1. 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

      1. Remember status and be verbose
        rc_status -v
        ;;

              dandread1@redhat.com Dimitrios Andreadis
              bkalbfus_jira Brian Kalbfus (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: