summaryrefslogtreecommitdiffstats
path: root/base/tps
diff options
context:
space:
mode:
authorAde Lee <alee@redhat.com>2012-10-17 16:17:54 -0400
committerAde Lee <alee@redhat.com>2012-10-18 17:30:01 -0400
commit643c089887db3369363e2b88dde19ef3a97029a2 (patch)
treebf83cb714fcf35190d8108fd71a6ae8671add303 /base/tps
parent8973480558c6b87c4aa6e1fdcd48b6d98c05a042 (diff)
downloadpki-643c089887db3369363e2b88dde19ef3a97029a2.tar.gz
pki-643c089887db3369363e2b88dde19ef3a97029a2.tar.xz
pki-643c089887db3369363e2b88dde19ef3a97029a2.zip
Fixes to get TPS to configure correctly
1. Reorder http.conf to actually read worker config 2. Change functions so that the TPS would restart. Before restarts would fail because the tus link already exists 3. Modify system verification test to return correctly when tests are successful
Diffstat (limited to 'base/tps')
-rw-r--r--base/tps/apache/conf/httpd.conf8
-rw-r--r--base/tps/src/engine/RA.cpp2
2 files changed, 6 insertions, 4 deletions
diff --git a/base/tps/apache/conf/httpd.conf b/base/tps/apache/conf/httpd.conf
index a9410849c..bf5864174 100644
--- a/base/tps/apache/conf/httpd.conf
+++ b/base/tps/apache/conf/httpd.conf
@@ -130,6 +130,11 @@ MaxRequestsPerChild 0
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
+
+# MPM worker module is a loadable module as of 2.4
+# Module must be loaded before the configuration stanza
+LoadModule mpm_worker_module /etc/httpd/modules/mod_mpm_worker.so
+
<IfModule worker.c>
ServerLimit 1
StartServers 1
@@ -232,9 +237,6 @@ Listen [PORT]
# LoadModule foo_module modules/mod_foo.so
#
-# MPM worker module is a loadable module as of 2.4
-LoadModule mpm_worker_module /etc/httpd/modules/mod_mpm_worker.so
-
LoadModule authz_core_module /etc/httpd/modules/mod_authz_core.so
[FORTITUDE_AUTH_MODULES]
# Module for User and Group
diff --git a/base/tps/src/engine/RA.cpp b/base/tps/src/engine/RA.cpp
index 436225045..82f53c161 100644
--- a/base/tps/src/engine/RA.cpp
+++ b/base/tps/src/engine/RA.cpp
@@ -3483,7 +3483,7 @@ TPS_PUBLIC bool RA::verifySystemCertByNickname(const char *nickname, const char
*/
TPS_PUBLIC bool RA::verifySystemCerts() {
bool verifyResult = false;
- bool rv = false; /* final return value */
+ bool rv = true; /* final return value */
char configname[256];
char configname_nn[256];
char configname_cu[256];