From ed98129b58b5b13031331fb88eb14d7c33474a59 Mon Sep 17 00:00:00 2001 From: Christina Fu Date: Wed, 30 Sep 2015 13:55:05 +0200 Subject: Ticket #1593 auto-shutdown - for HSM failover support This is an interim solution for supporting HSM failover by automatically shutting down the server when signing key becomes inaccessible. At auto-shutdown, a crumb fiile will be left in the instance directory for an external daemon to detect and restart, if necessary. Due to limitation of the watch dog (nuxwdog) at present time, the restart option currently only works if started with watch dog (nuxwdog), and it will prompt for passwords on the terminals. The restart counter is to prevent the server from going into an infinite restart loop. Administrator will have to reset autoShutdown.restart.count to 0 when max is reached. (cherry picked from commit 5a9ecad9172f76ca1b94b40aedcdd49d009aceb1) --- base/server/test/com/netscape/cmscore/app/CMSEngineDefaultStub.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'base/server/test') diff --git a/base/server/test/com/netscape/cmscore/app/CMSEngineDefaultStub.java b/base/server/test/com/netscape/cmscore/app/CMSEngineDefaultStub.java index 404832c0d..36a263e92 100644 --- a/base/server/test/com/netscape/cmscore/app/CMSEngineDefaultStub.java +++ b/base/server/test/com/netscape/cmscore/app/CMSEngineDefaultStub.java @@ -545,6 +545,12 @@ public class CMSEngineDefaultStub implements ICMSEngine { public void forceShutdown() { } + public void autoShutdown() { + } + + public void checkForAndAutoShutdown() { + } + public IPasswordStore getPasswordStore() { return null; } -- cgit