[ZBX-10714] Startup Script overrides JAVA_OPTIONS Created: 2016 Apr 27  Updated: 2020 Jan 19

Status: Reopened
Project: ZABBIX BUGS AND ISSUES
Component/s: Java gateway (J)
Affects Version/s: 3.0.2
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: Marcello Percoco Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: initscripts, javagateway
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS 7 Pre-Packaged



 Description   

In packaged version of Zabbix-Java-Gateway for CentOS7 the startup script in /usr/sbin/zabbix_java_gateway override JAVA_OPTIONS at line 25

JAVA_OPTIONS="-server $JAVA_OPTIONS"
JAVA_OPTIONS="-Dlogback.configurationFile=/etc/zabbix/zabbix_java_gateway_logback.xml"

so is impossibile to use java_gateway with SSL putting a JAVA_OPTIONS line in the config file

the solution is to modify the lines this way:

JAVA_OPTIONS="-server $JAVA_OPTIONS"
JAVA_OPTIONS="$JAVA_OPTIONS -Dlogback.configurationFile=/etc/zabbix/zabbix_java_gateway_logback.xml"

Note that I've found similar problem in java-Gateway 2.4 packaged for CentOS6, in the init script, but the script for CentOS7 and java_gateway 2.4 was fine.



 Comments   
Comment by Oleksii Zagorskyi [ 2016 Apr 27 ]

I confirm it and would agree to fix it that way, including in "startup.sh" in zabbix sources.

Comment by Kodai Terashima [ 2016 May 22 ]

Fixed in 2.2.13, 3.0.3

Comment by Oleksii Zagorskyi [ 2016 May 22 ]

Let's keep it opened to fix in zabbix sources too.
REOPENED

Generated at Sat Dec 13 23:08:27 EET 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.