diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2012-04-02 06:23:51 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2012-04-02 06:23:51 +0000 |
commit | 13c04a6f477f49e3d33f6b71cf26e076a46d685f (patch) | |
tree | 07feae448e0aea253f7e340c081cca7b3bcb7a25 /sca-cpp/trunk/components/sqldb/pgsql-start | |
parent | 58693003dace4ef41f7f0eca2085514a82dfe959 (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-x | sca-cpp/trunk/components/sqldb/pgsql-start | 2 |
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'` |