Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-2668

Cannot execute "ssh $USER@$HOST service wildfly-init-redhat.sh restart" correctly in domain mode

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • None
    • 8.0.0.Final
    • None
    • None
    • Hide

      1. Configure wildfly as a service in RHEL 6
      2. Edit to JBOSS_MODE=domain in /etc/default/wildfly.conf
      3. From a remote PC, execute "ssh $USER@$HOST service wildfly-init-redhat.sh restart"

      Actual results:
      WildFly keep grabing the terminal

      Expected results:
      Exit from the ssh command.

      Show
      1. Configure wildfly as a service in RHEL 6 2. Edit to JBOSS_MODE=domain in /etc/default/wildfly.conf 3. From a remote PC, execute "ssh $USER@$HOST service wildfly-init-redhat.sh restart" Actual results: WildFly keep grabing the terminal Expected results: Exit from the ssh command.
    • Workaround Exists
    • Hide

      Modify line 113 and 115 in wildfly-init-redhat.sh like this:

      line 113:
      daemon --user $JBOSS_USER LAUNCH_JBOSS_IN_BACKGROUND=1 JBOSS_PIDFILE=$JBOSS_PIDFILE $JBOSS_SCRIPT --domain-config=$JBOSS_DOMAIN_CONFIG --host-config=$JBOSS_HOST_CONFIG >> $JBOSS_CONSOLE_LOG 2>&1 &

      line 115:
      su - $JBOSS_USER -c "LAUNCH_JBOSS_IN_BACKGROUND=1 JBOSS_PIDFILE=$JBOSS_PIDFILE $JBOSS_SCRIPT --domain-config=$JBOSS_DOMAIN_CONFIG --host-config=$JBOSS_HOST_CONFIG" >> $JBOSS_CONSOLE_LOG 2>&1 &

      Show
      Modify line 113 and 115 in wildfly-init-redhat.sh like this: line 113: daemon --user $JBOSS_USER LAUNCH_JBOSS_IN_BACKGROUND=1 JBOSS_PIDFILE=$JBOSS_PIDFILE $JBOSS_SCRIPT --domain-config=$JBOSS_DOMAIN_CONFIG --host-config=$JBOSS_HOST_CONFIG >> $JBOSS_CONSOLE_LOG 2>&1 & line 115: su - $JBOSS_USER -c "LAUNCH_JBOSS_IN_BACKGROUND=1 JBOSS_PIDFILE=$JBOSS_PIDFILE $JBOSS_SCRIPT --domain-config=$JBOSS_DOMAIN_CONFIG --host-config=$JBOSS_HOST_CONFIG" >> $JBOSS_CONSOLE_LOG 2>&1 &

    Description

      WildFly keep grabing a terminal after executing "ssh $USER@$HOST service wildfly-init-redhat.sh restart" in domain mode.

      How reproducible: 100%

      Attachments

        Activity

          People

            rhn-support-tkonishi Takayuki Konishi
            rhn-support-tkonishi Takayuki Konishi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: