summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/components/cache/memcached-start
diff options
context:
space:
mode:
Diffstat (limited to 'sca-cpp/trunk/components/cache/memcached-start')
-rwxr-xr-xsca-cpp/trunk/components/cache/memcached-start4
1 files changed, 2 insertions, 2 deletions
diff --git a/sca-cpp/trunk/components/cache/memcached-start b/sca-cpp/trunk/components/cache/memcached-start
index 947b583ec0..692a066010 100755
--- a/sca-cpp/trunk/components/cache/memcached-start
+++ b/sca-cpp/trunk/components/cache/memcached-start
@@ -44,8 +44,8 @@ mkdir -p $root/memcached
echo $log > $root/memcached/logger
if [ "$ip" = "" ]; then
- ($memcached_prefix/bin/memcached -d -m 4 -p $port $v 2>&1 | sh $root/memcached/logger)&
+ nohup /bin/sh -c "($memcached_prefix/bin/memcached -d -m 4 -p $port $v 2>&1 | sh $root/memcached/logger)" 1>/dev/null 2>/dev/null &
else
- ($memcached_prefix/bin/memcached -d -l $ip -m 4 -p $port $v 2>&1 | sh $root/memcached/logger)&
+ nohup /bin/sh -c "($memcached_prefix/bin/memcached -d -l $ip -m 4 -p $port $v 2>&1 | sh $root/memcached/logger)" 1>/dev/null 2>/dev/null &
fi