United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-8012038 : init installed by jdk v1.7.0_17 rpm on linux is broken; correction included

Details
Type:
Bug
Submit Date:
2013-04-04
Status:
Closed
Updated Date:
2014-08-12
Project Name:
JDK
Resolved Date:
2013-06-21
Component:
install
OS:
Sub-Component:
install
CPU:
Priority:
P3
Resolution:
Fixed
Affected Versions:
7,7u17,8
Fixed Versions:

Related Reports
Backport:
Backport:
Backport:
Duplicate:
Duplicate:

Sub Tasks

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.
                                     
2013-07-23
PIT verified for 7u40-b33 - both comments found in the jexec script that no errors shown anymore.
                                     
2013-07-08
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'
                                     
2013-06-26
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)
                                     
2013-06-25
SQE is OK with this fix
                                     
2013-06-25
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>
                                     
2013-06-25
Add "# Required-Stop:" to the header for "jexec" script.
                                     
2013-04-15



Hardware and Software, Engineered to Work Together