JDK-8012038 : init installed by jdk v1.7.0_17 rpm on linux is broken; correction included
  • Type: Bug
  • Component: install
  • Sub-Component: install
  • Affected Version: 7,7u17,8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-04-04
  • Updated: 2014-11-17
  • Resolved: 2013-06-21
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u40Fixed 8 b97Fixed
Related Reports
Duplicate :  
Duplicate :  
Description
FULL PRODUCT VERSION :
java -version
  java version  " 1.7.0_17 " 
  Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
  Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)


ADDITIONAL OS VERSION INFORMATION :
Linux svr01 3.4.33-2.24-desktop #1 SMP PREEMPT Tue Feb 26 03:34:33 UTC 2013 (5f00a32) x86_64 x86_64 x86_64 GNU/Linux


A DESCRIPTION OF THE PROBLEM :
The  " jexec "  init that you distribute with JDK 1.7.0_17

rpm -q --whatprovides /etc/init.d/jexec
jdk-1.7.0_17-fcs.x86_64

is broken.

It includes

### BEGIN INIT INFO
# Provides: binfmt_misc
# Required-Start: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Start: 0 6
# chkconfig: 12345 95 05
# Description: Supports the direct execution of binary formats.
### END INIT INFO

That causes lots of these messages when you upgrade packages,

insserv: script jexec is broken: incomplete LSB comment.
insserv: missing `Required-Stop:'  entry: please add even if empty.

The  " jexec "  init should include, instead

### BEGIN INIT INFO
# Provides: binfmt_misc
# Required-Start: $local_fs
# Required-Stop:
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# chkconfig: 12345 95 05
# Description: Supports the direct execution of binary formats.
### END INIT INFO

I'm aware that this has been reported multiple times since at least 1.7.0_15 both by bug and in direct contact with, and ack'd by, devs.

It's a simple fix on your end that unfixed causes maintenance/support problems on ours


ERROR MESSAGES/STACK TRACES THAT OCCUR :
insserv: script jexec is broken: incomplete LSB comment.
insserv: missing `Required-Stop:'  entry: please add even if empty.


REPRODUCIBILITY :
This bug can be reproduced always.
Comments
Verified with 8b99.
23-07-2013

PIT verified for 7u40-b33 - both comments found in the jexec script that no errors shown anymore.
08-07-2013

Fix partially verified with JDK8-b96PIT build. It seems the bug describes 2 issues and only #1 is fixed in the build. Bug #1 : add "# Required-Stop:" to the script (Verified) Bug #2 : replace second "# Default-Start: 0 6" to "# Default-Stop: 0 6" ( NOT FIXED) ##################### # TEST: 8b96PIT # ##################### ### BEGIN INIT INFO # Provides: binfmt_misc # Required-Start: $local_fs # Required-Stop: # Default-Start: 1 2 3 4 5 # Default-Start: 0 6 # chkconfig: 12345 95 05 # Description: Supports the direct execution of binary formats. ### END INIT INFO @sc11137367:~/test# chkconfig --add jexec insserv: Script jexec is broken: incomplete LSB comment. insserv: missing `Default-Stop:' entry: please add even if empty. insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `jexec' @sc11137367:~/test# chkconfig --del jexec insserv: Script jexec is broken: incomplete LSB comment. insserv: missing `Default-Stop:' entry: please add even if empty. insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `jexec'
26-06-2013

Ealuation: Add "# Required-Stop:" to the comment header for the script install/make/installer/bundles/linux/jexec 7uX-critical-request justification: This bug fix is needed because this had been reported multiple times and causes maintenance and support problems for many. Level of effort: Low, fixed in 8 a simple backport is needed. Risk: Low Amount of testing coverage: Low Result if not integrated: the error message "insserv: script jexec is broken: incomplete LSB comment." will continue to appear. Reviewers: Randy Crihfield <Randy.Crihfield@ORACLE.COM>, Pranav Bhat <pranav.bhat@oracle.com>, William J Harnois <William.Harnois@oracle.com>
25-06-2013

SQE is OK with this fix
25-06-2013

We need to have the Eng justification, then the SQE-OK, then give the release team time to review. So - please add justification and get SQE OK and the release team will review by tomorrow at noon PT. Then I'll approve this with the batch that I work on tomorrow. (06/25/13)
25-06-2013

Add "# Required-Stop:" to the header for "jexec" script.
15-04-2013