summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/components/sqldb/pgsql-start
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2012-04-02 06:23:51 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2012-04-02 06:23:51 +0000
commit13c04a6f477f49e3d33f6b71cf26e076a46d685f (patch)
tree07feae448e0aea253f7e340c081cca7b3bcb7a25 /sca-cpp/trunk/components/sqldb/pgsql-start
parent58693003dace4ef41f7f0eca2085514a82dfe959 (diff)
Detach Memcached and Pgsql from terminal when logging with a logger like Scribe. Add a Scribe status command.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1308246 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/components/sqldb/pgsql-start')
-rwxr-xr-xsca-cpp/trunk/components/sqldb/pgsql-start2
1 files changed, 1 insertions, 1 deletions
diff --git a/sca-cpp/trunk/components/sqldb/pgsql-start b/sca-cpp/trunk/components/sqldb/pgsql-start
index 4a7e1ebe23..2955bec991 100755
--- a/sca-cpp/trunk/components/sqldb/pgsql-start
+++ b/sca-cpp/trunk/components/sqldb/pgsql-start
@@ -32,7 +32,7 @@ fi
mkdir -p $root/sqldb
echo $pgsql_log >$root/sqldb/logger
-($pgsql_prefix/bin/pg_ctl start -W -D $root/sqldb/data 2>&1 | sh $root/sqldb/logger)&
+nohup /bin/sh -c "($pgsql_prefix/bin/pg_ctl start -W -D $root/sqldb/data 2>&1 | sh $root/sqldb/logger)" 1>/dev/null 2>/dev/null &
sti=0
while [ $sti -ne 30 ]; do
st=`$pgsql_prefix/bin/pg_ctl status -D $root/sqldb/data | grep 'server is running'`