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

have restart clean command/API

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0
    • None
    • None

    Description

      in development its very common to want to trash the data directory, stop karaf then start again. Its kinda painful.

      it'd be good to do this in a single command.

      restart:clean
      

      which would move the ./data directory somewhere (into an old directory, maybe numbered so you've a history of logs etc) and then doing a System.exit(something) such that the shell script knows its a restart, where the shell script could then restart the JVM again.

      I can imagine this being useful in distributed testing/production uses where you want to basically restart a server from scratch so it might fetch new bundles on startup etc (without worrying about old stuff being stuck in the JVM).

      I guess restarting is one thing - and restarting clean (with the data directory going) is a secondary optional extra

      Attachments

        Issue Links

          Activity

            People

              gnodet Guillaume Nodet
              jstrachan James Strachan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: