Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
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
- relates to
-
KARAF-185 Have a 'clean' parameter on the main shell script to clean the working folder
- Closed