Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Duplicate
-
3.0.6
-
None
-
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
- duplicates
-
KARAF-4479 Incorrect syntax in wrapper launch script karaf-service
- Resolved