Project

General

Profile

Actions

Bug #6937

closed

/etc/init.d/rudder-jetty prints error with openjdk on debian/sid

Added by Remi Debay over 9 years ago. Updated over 9 years ago.

Status:
Rejected
Priority:
3
Assignee:
-
Category:
Server components
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

Hi

I got the following error on a debian sid:

_root@ks01:~# /etc/init.d/rudder-jetty status

/etc/init.d/rudder-jetty: line 403: [: -lt: unary operator expected
Checking arguments to Jetty:
_

The code says:
_JAVA_VERSION=$(${JAVA} -version 2>&1 | grep "java version" | sed 's%java version \"[0-9]\.\([0-9]\)\.[0-9].*\"%\1%')
echo $JAVA_VERSION

if [ ${JAVA_VERSION} -lt 7 ]
..._

and well, my java installed with rudder-server-root/3.0.6/jetty is openjdk:

$ java -version
openjdk version "1.8.0_60-internal"
OpenJDK Runtime Environment (build 1.8.0_60-internal-b22)
OpenJDK 64-Bit Server VM (build 25.60-b22, mixed mode)

Jetty is running, no more errors than the printed one


Related issues 1 (0 open1 closed)

Is duplicate of Rudder - Bug #6765: Rudder-jetty init script fails to get openjdk versionReleasedAlexis Mousset2015-06-17Actions
Actions

Also available in: Atom PDF