[Opensim-users] WG: shell script to restart after crash

Dirk Krause dirk.krause at pixelpark.com
Fri Jul 9 06:24:24 UTC 2010


sry, this better belongs to this list, I suppose.

-- Dirk
-----Ursprüngliche Nachricht-----
Von: opensim-dev-bounces at lists.berlios.de im Auftrag von Dirk Krause
Gesendet: Fr 09.07.2010 08:19
An: opensim-dev at lists.berlios.de
Betreff: shell script to restart after crash
 
Hi,

just for info: this script from a colleague of mine came handy to keep my OpenSims running.

I know it's not rocket science but useful. Instead of calling mono OpenSim.exe you start this script:

--snip--

until mono OpenSim.exe ; do

    EXIT_CODE=$?

    echo "`date +%Y-%m-%d\ \ %T` # OpenSim crashed with exit code $EXIT_CODE. Restart..." >> crash.log

    sleep 1

done

--snip--

Best,
  Dirk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-users/attachments/20100709/1b1827d0/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT118281.txt
URL: <http://opensimulator.org/pipermail/opensim-users/attachments/20100709/1b1827d0/attachment.txt>


More information about the Opensim-users mailing list