Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8012038

init installed by jdk v1.7.0_17 rpm on linux is broken; correction included

XMLWordPrintable

    • b97
    • Verified

        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.

              dmalav Dinesh Malav (Inactive)
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: