summaryrefslogtreecommitdiffstats
path: root/base/common
diff options
context:
space:
mode:
authorAde Lee <alee@redhat.com>2012-08-17 12:37:29 -0400
committerAde Lee <alee@redhat.com>2012-08-17 13:29:51 -0400
commit6028b01f64305eda7540cf96bde658d4ebbec2ed (patch)
tree613d70489e9e270183510f12730983b17fc161a2 /base/common
parent2f746e5ac050672dd53f839a0ae149edd1a5688d (diff)
downloadpki-6028b01f64305eda7540cf96bde658d4ebbec2ed.tar.gz
pki-6028b01f64305eda7540cf96bde658d4ebbec2ed.tar.xz
pki-6028b01f64305eda7540cf96bde658d4ebbec2ed.zip
Added default for pidDir for dogtag 9 instances
Diffstat (limited to 'base/common')
-rw-r--r--base/common/src/com/netscape/cmscore/apps/CMSEngine.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/common/src/com/netscape/cmscore/apps/CMSEngine.java b/base/common/src/com/netscape/cmscore/apps/CMSEngine.java
index 8020a6562..e5eac3b93 100644
--- a/base/common/src/com/netscape/cmscore/apps/CMSEngine.java
+++ b/base/common/src/com/netscape/cmscore/apps/CMSEngine.java
@@ -1722,7 +1722,8 @@ public class CMSEngine implements ICMSEngine {
BufferedReader bf = null;
try {
// PID file is be created by wrapper script (e.g. /usr/sbin/tomcat6)
- String dir = mConfig.getString("pidDir");
+ // The default is for dogtag 9 systems which did not have this paramater
+ String dir = mConfig.getString("pidDir", "/var/run");
String name = dir+File.separator+instanceId+".pid";
if (dir == null) return pid;