Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-1180

Ability to exit karaf with a predictable exit code

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.5, 3.0.0
    • Fix Version/s: None
    • Component/s: karaf-core
    • Labels:
      None
    • Environment:

      windows/unixes

      Description

      http://karaf.922171.n3.nabble.com/Ability-to-self-restart-karaf-WAS-Infamous-permgen-leak-td3589167.html

      Per above discussion there is a way to shutdown karaf thru its services. However It is crucial to ask Karaf to shutdown with the known exit code so that the launcher ( ie jsw wrapper ) can react programtically, like restart karaf, replace karaf, replace jre...

        Activity

        Hide
        danttran Dan Tran added a comment -

        I am very interested to provide a patch if karaf can tell me where to look. Thanks

        Show
        danttran Dan Tran added a comment - I am very interested to provide a patch if karaf can tell me where to look. Thanks
        Hide
        jbonofre Jean-Baptiste Onofré added a comment -

        I will take a look later today. I will define the target fix version that time.

        Show
        jbonofre Jean-Baptiste Onofré added a comment - I will take a look later today. I will define the target fix version that time.
        Hide
        danttran Dan Tran added a comment -

        I have special interest in this fix, so if you can lead me to the right place I can provide a patch and test it with our inhouse karaf

        Show
        danttran Dan Tran added a comment - I have special interest in this fix, so if you can lead me to the right place I can provide a patch and test it with our inhouse karaf
        Hide
        danttran Dan Tran added a comment -

        comments from user list

        Andreas Pieber
        Nov 29 (4 days ago)

        to Apache
        OK, I think this is a completely different problem I would rather
        like to discuss on a different thread. But my short analyses here: if
        you give main a shot, you'll notice that there's already some
        exit-code/restart logic... a new var cold_restart which will set a
        fixed exit code (e.g. 99) would do the job. WDYT?

        Kind regards,
        Andreas

        Show
        danttran Dan Tran added a comment - comments from user list Andreas Pieber Nov 29 (4 days ago) to Apache OK, I think this is a completely different problem I would rather like to discuss on a different thread. But my short analyses here: if you give main a shot, you'll notice that there's already some exit-code/restart logic... a new var cold_restart which will set a fixed exit code (e.g. 99) would do the job. WDYT? Kind regards, Andreas

          People

          • Assignee:
            Unassigned
            Reporter:
            danttran Dan Tran
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development