<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>WG: shell script to restart after crash</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>sry, this better belongs to this list, I suppose.<BR>
<BR>
-- Dirk<BR>
-----Ursprüngliche Nachricht-----<BR>
Von: opensim-dev-bounces@lists.berlios.de im Auftrag von Dirk Krause<BR>
Gesendet: Fr 09.07.2010 08:19<BR>
An: opensim-dev@lists.berlios.de<BR>
Betreff: shell script to restart after crash<BR>
<BR>
Hi,<BR>
<BR>
just for info: this script from a colleague of mine came handy to keep my OpenSims running.<BR>
<BR>
I know it's not rocket science but useful. Instead of calling mono OpenSim.exe you start this script:<BR>
<BR>
--snip--<BR>
<BR>
until mono OpenSim.exe ; do<BR>
<BR>
EXIT_CODE=$?<BR>
<BR>
echo "`date +%Y-%m-%d\ \ %T` # OpenSim crashed with exit code $EXIT_CODE. Restart..." >> crash.log<BR>
<BR>
sleep 1<BR>
<BR>
done<BR>
<BR>
--snip--<BR>
<BR>
Best,<BR>
Dirk<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>