Return-Path: Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: (qmail 29335 invoked from network); 2 Sep 2010 09:08:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Sep 2010 09:08:17 -0000 Received: (qmail 31211 invoked by uid 500); 2 Sep 2010 09:08:17 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 31038 invoked by uid 500); 2 Sep 2010 09:08:15 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 31020 invoked by uid 99); 2 Sep 2010 09:08:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Sep 2010 09:08:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Sep 2010 09:08:13 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8297rUS011870 for ; Thu, 2 Sep 2010 09:07:53 GMT Message-ID: <13207314.136601283418473501.JavaMail.jira@thor> Date: Thu, 2 Sep 2010 05:07:53 -0400 (EDT) From: "Guillaume Nodet (JIRA)" To: issues@karaf.apache.org Subject: [jira] Resolved: (KARAF-26) have restart clean command/API MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-26?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Guillaume Nodet resolved KARAF-26. ---------------------------------- Fix Version/s: 2.2.0 Resolution: Fixed Committing to https://svn.apache.org/repos/asf/karaf/trunk ... M main/pom.xml M main/src/main/java/org/apache/karaf/main/Main.java M main/src/main/java/org/apache/karaf/main/Utils.java A shell/dev/src/main/java/org/apache/karaf/shell/dev/Restart.java M shell/dev/src/main/resources/OSGI-INF/blueprint/shell-dev.xml Committed r991865 > have restart clean command/API > ------------------------------ > > Key: KARAF-26 > URL: https://issues.apache.org/jira/browse/KARAF-26 > Project: Karaf > Issue Type: New Feature > Reporter: james strachan > Assignee: Guillaume Nodet > Fix For: 2.2.0 > > > 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.