Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-4483

Wrapper adds wrong line to bin/karaf-service shell script

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 3.0.6
    • None
    • karaf
    • None

    Description

      Installing the wrapper on karat 3.0.6 on RHEL 6.7 generates a wrong init.d shell script.

      1. unpack the apache-karaf-3.0.6.tar.gz distributable

      2. modify bin/setenv and set JAVA_HOME to a valid JDK location

      3. start karaf and install wrapper files

      feature:install wrapper
      wrapper:install
      

      4. Inspect generated bin/karaf-service file

      Pretty much at the top of the file a line as follows appears

      set JAVA_HOME=/usr/java/jdk1.8.0_71
      

      which causes the shell script to eat the provided args and fails with

      $ bin/karaf-service start
      Usage: bin/karaf-service { console | start | stop | restart | status | dump }
      

      Also if the JAVA_HOME is NOT set in the bin/setenv file, the following line is added to bin/karaf-service:

      set JAVA_HOME=null
      

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              niels.bertram Niels Bertram
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: