summaryrefslogtreecommitdiffstats
path: root/base/server/cmscore/src/com/netscape/cmscore/apps
diff options
context:
space:
mode:
authorAde Lee <alee@redhat.com>2015-05-06 16:06:34 -0400
committerAde Lee <alee@redhat.com>2015-05-10 16:09:24 -0400
commit7dca020819b7573cd05bd54482fb5d1afe9bb658 (patch)
tree871e3a9d350c081e52a26b0583bd02e8f2dd761b /base/server/cmscore/src/com/netscape/cmscore/apps
parent2db074c39334a6ec48a6fac52722f684a14bb00a (diff)
downloadpki-7dca020819b7573cd05bd54482fb5d1afe9bb658.tar.gz
pki-7dca020819b7573cd05bd54482fb5d1afe9bb658.tar.xz
pki-7dca020819b7573cd05bd54482fb5d1afe9bb658.zip
Patches to get nuxwdog working with systemd
This patch adds some new unit files and targets for starting instances with nuxwdog, as well as logic within the pki-server nuxwdog module to switch to/from the old and new systemd unit files. It also corrects some issues found in additional testing of the nuxwdog change scripts. To use nuxwdog to start the instance, a user needs to do the following: 1. Create an instance normally. 2. Run: pki-server instance-nuxwdog-enable <instance_name> 3. Start the instance using: systemctl start pki-tomcatd-nuxwdog@<instance_name>.service To revert the instance, simply do the following: 1. Run: pki-server instance-nuxwdog-disable <instance_name> 2. Start the instance using: systemctl start pki-tomcatd@<instance_name>.service
Diffstat (limited to 'base/server/cmscore/src/com/netscape/cmscore/apps')
-rw-r--r--base/server/cmscore/src/com/netscape/cmscore/apps/CMSEngine.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/base/server/cmscore/src/com/netscape/cmscore/apps/CMSEngine.java b/base/server/cmscore/src/com/netscape/cmscore/apps/CMSEngine.java
index b6750c615..729fb4a80 100644
--- a/base/server/cmscore/src/com/netscape/cmscore/apps/CMSEngine.java
+++ b/base/server/cmscore/src/com/netscape/cmscore/apps/CMSEngine.java
@@ -321,6 +321,7 @@ public class CMSEngine implements ICMSEngine {
try {
mPasswordStore = (IPasswordStore) Class.forName(pwdClass).newInstance();
mPasswordStore.init(pwdPath);
+ mPasswordStore.setId(instanceId);
} catch (Exception e) {
System.out.println("Cannot get password store: " + e);
throw new EBaseException(e);
@@ -467,6 +468,9 @@ public class CMSEngine implements ICMSEngine {
serverStatus = "starting";
+ instanceDir = config.getString("instanceRoot");
+ instanceId = config.getString("instanceId");
+
if (state == 1) {
// configuration is complete, initialize password store
try {
@@ -497,9 +501,6 @@ public class CMSEngine implements ICMSEngine {
mTimeSource = new SimpleTimeSource();
}
- instanceDir = config.getString("instanceRoot");
- instanceId = config.getString("instanceId");
-
loadDynSubsystems();
java.security.Security.addProvider(