Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-2791

No way for graceful server shutdown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Launchpad Base 2.5.0
    • Launchpad Base 2.5.2
    • Launchpad
    • None

    Description

      The main class of the launchpad-base will register a shutdown hook on the JVM to tear down the felix framework properly (Framework#shutdown). There are certain situation where a client wants to have a different behaviour, i.e. to implement a graceful server shutdown.
      In Felix itself you can set the "felix.shutdown.hook=false" to prevent Felix from registering its own shutdown hook. It would be great if Sling would provide the same functionality.

      I have already a patch in place which will search for the same property as Felix and in case this is set to true will not create its own shutdown hook but will rely on the client to properly shutdown the framework. I know there are more actions which Sling is doing upon JVM shutdown but since there is also a listener on the Framework shutdown itself these actions will still be performed.

      Attachments

        1. SLING-2791.patch
          5 kB
          Felix Meschberger

        Activity

          People

            fmeschbe Felix Meschberger
            pmarx Philipp Marx
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: