11-14-2014, 01:00 AM
change the path call
example
#!/bin/sh
while ( : ) do
DATE=`date`
if [ -r .shutdown ]; then
rm -f .shutdown
fi
export LD_LIBRARY_PATH=/root/Ep3/CashServer/libmysqlclient.so.16:$LD_LIBRARY_PATH
LD_PRELOAD=/root/Ep3/GameServer/s3/GameServer3/LCBuff.so ./GameServer_d
DATE2=`date`
if [ -r .shutdown ]; then
echo "***** Shutdown $DATE ~ $DATE2" >> rebootlog
exit
fi
echo "!!!!! Reboot $DATE ~ $DATE2" >> rebootlog
sleep 2
done
just make sure you change the path to where you have the lib file .....

