diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-08-19 04:10:43 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-08-19 04:10:43 +0000 |
commit | 768a1e33e56c579edbcab1d4ea73d06b85cdd06c (patch) | |
tree | 5ea1f2c67ad34a17155c221711df7eff010034d2 /sca-cpp/trunk/samples/store-cluster/sqldb-master-conf | |
parent | d4184f1ab86fd589126f3de2ed9fa433cf1b54b2 (diff) |
Script fixes to get database working with the HTTPS-enabled store-cluster sample configuration. Also some logging improvements and aggregation of the sample logs using scribe.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@987012 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rwxr-xr-x | sca-cpp/trunk/samples/store-cluster/sqldb-master-conf | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sca-cpp/trunk/samples/store-cluster/sqldb-master-conf b/sca-cpp/trunk/samples/store-cluster/sqldb-master-conf index cd85f1e328..f191b4eb3e 100755 --- a/sca-cpp/trunk/samples/store-cluster/sqldb-master-conf +++ b/sca-cpp/trunk/samples/store-cluster/sqldb-master-conf @@ -19,6 +19,16 @@ root=$1 port=$2 +httpport=$3 + +# Aggregate database server logs +category=`basename $root` +../../components/log/scribe-tail-start $category "sqldb" $root/logs/postgresql +../../components/log/scribe-tail-start $category $root/logs/error_log +../../components/log/scribe-tail-start $category $root/logs/access_log + +# Configure a database backup HTTP server +../../modules/http/httpd-conf $root localhost $httpport $root/htdocs # Configure a database server if [ ! -f $root/sqldb/data/postgresql.conf ]; then @@ -29,7 +39,7 @@ fi ../../components/sqldb/pgsql-conf $root $port if [ "$create" = "true" ]; then ../../components/sqldb/pgsql-start $root - ../../components/sqldb/pgsql localhost $port "create table store(key text, value text);" 1>/dev/null 2>&1 + ../../components/sqldb/pgsql localhost $port "create table store(key text, value text);" 1>>$root/logs/postgresql 2>&1 ../../components/sqldb/pgsql-stop $root fi |