You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "james strachan (JIRA)" <ji...@apache.org> on 2009/07/10 16:39:14 UTC
[jira] Created: (FELIX-1316) have restart clean command/API
have restart clean command/API
------------------------------
Key: FELIX-1316
URL: https://issues.apache.org/jira/browse/FELIX-1316
Project: Felix
Issue Type: New Feature
Components: Karaf
Reporter: james strachan
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.
{code}
restart:clean
{code}
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
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (FELIX-1316) have restart clean command/API
Posted by "Chris Custine (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Custine reassigned FELIX-1316:
------------------------------------
Assignee: Chris Custine
> have restart clean command/API
> ------------------------------
>
> Key: FELIX-1316
> URL: https://issues.apache.org/jira/browse/FELIX-1316
> Project: Felix
> Issue Type: New Feature
> Components: Karaf
> Reporter: james strachan
> Assignee: Chris Custine
>
> 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.
> {code}
> restart:clean
> {code}
> 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
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.