#!/bin/sh
export JAVA_HOME=/usr/java/jdk1.6.0_14
logPath=/opt/smc/log/sociality
if [ ! -d "$logPath" ]; then
mkdir "$logPath"
fi
logPath=/opt/smc/log/sociality/server
if [ ! -d "$logPath" ]; then
mkdir "$logPath"
fi
for lib in ./lib/*.jar
do
cp=$lib:$cp
done
kill `cat smc-sociality-rest-server.pid`
sleep 1
exec "java" ${jvm.arg} -classpath ./resources:$cp com.sohu.smc.sociality.rest.service.SocialityRestServer &
echo $! > smc-sociality-rest-server.pid
echo "start finish! pid:$!"
export JAVA_HOME=/usr/java/jdk1.6.0_14
logPath=/opt/smc/log/sociality
if [ ! -d "$logPath" ]; then
mkdir "$logPath"
fi
logPath=/opt/smc/log/sociality/server
if [ ! -d "$logPath" ]; then
mkdir "$logPath"
fi
for lib in ./lib/*.jar
do
cp=$lib:$cp
done
kill `cat smc-sociality-rest-server.pid`
sleep 1
exec "java" ${jvm.arg} -classpath ./resources:$cp com.sohu.smc.sociality.rest.service.SocialityRestServer &
echo $! > smc-sociality-rest-server.pid
echo "start finish! pid:$!"