Closes #751 Adds method to reset the shutdown flag within BrooklynShutdownHooks
Under karaf if you restarted the brooklyn-init bundle either manually or due to a re-wire the management context would not restart (requiring you to resart karaf). This change allows the OSGi launcher to reset the shutdown flag enabling bundle / management context restart See [BROOKLYN-522](https://issues.apache.org/jira/browse/BROOKLYN-522) Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/edfc80e9 Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/edfc80e9 Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/edfc80e9 Branch: refs/heads/master Commit: edfc80e93e025b096163c0994e9cdaedd7e42328 Parents: 8643806 7068308 Author: Geoff Macartney <[email protected]> Authored: Fri Jun 30 14:14:11 2017 +0100 Committer: Geoff Macartney <[email protected]> Committed: Fri Jun 30 14:14:11 2017 +0100 ---------------------------------------------------------------------- .../mgmt/internal/BrooklynShutdownHooks.java | 24 ++++++++++++++------ .../brooklyn/launcher/osgi/OsgiLauncher.java | 2 ++ 2 files changed, 19 insertions(+), 7 deletions(-) ----------------------------------------------------------------------
