12-07-2012, 03:54 PM
put that in cash server run
and start it in terminal with ./run
and restart every time
#!/bin/bash
while ( : ) do
DATE=`date`
if [ -r .shutdown ]; then
rm -f .shutdown
fi
mono CashServer.exe
sleep 0
kill mono CashServer.exe
DATE2=`date`
if [ -r .shutdown ]; then
echo "***** Shutdown $DATE ~ $DATE2" >> rebootlog
exit
fi
echo "!!!!! Reboot $DATE ~ $DATE2" >> rebootlog
sleep 0
done

