01-03-2013, 07:17 AM
location: /lc2/CashServer/cash.exe
run:
#!/bin/bash
while ( : ) do
DATE=`date`
if [ -r .shutdown ]; then
rm -f .shutdown
fi
mono ./cash.exe
DATE2=`date`
if [ -r .shutdown ]; then
echo "***** Shutdown $DATE ~ $DATE2" >> rebootlog
exit
fi
echo "!!!!! Reboot $DATE ~ $DATE2" >> rebootlog
sleep 2
done
start.sh:
./run cash_test start &
startService.sh
cd /lc2/;
cd CashServer;
./start.sh;

