Check the tools section. If you are looking for a way to restart your world if it crashes, there already a tool for that. And one is in progress to allow it to restart to world regularly on a timer with in-game warning messages.
http://www.eqemulator.net/forums/showthread.php?t=24621