Shortnote

Assuming that the Corrade directory is at:

/var/Corrade

and that mono is installed at:

/usr/bin/mono

the following OSX plist will restart Corrade and keep the daemon running.

To install, copy the plist below to /Library/LaunchDaemons and load it using:

launchctl load -w net.was.secondlife.corrade.plist

Code

net.was.secondlife.corrade.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>Label</key>
        <string>net.was.secondlife.corrade</string>
        <key>ProgramArguments</key>
        <array>
            <string>/usr/bin/mono</string>
            <string>/var/Corrade/Corrade.exe</string>
        </array>
        <key>WorkingDirectory</key>
        <string>/var/Corrade</string>        
        <key>KeepAlive</key>
        <true/>
        <key>RunAtLoad</key>
        <true/>
        <key>StandardErrorPath</key>
        <string>/var/Corrade/Corrade.err</string>
        <key>StandardOutPath</key>
        <string>/var/Corrade/Corrade.out</string>
</dict>
</plist>