Description
This is a wrapper around the moo binary. It is a replacement for the simple restart script that comes with the LambdaMOO server source.
Download
start-stop-moo.sh.gzInstallation Notes
Save the .sh file to wherever you have installed the server. Edit the first part of the script for your needs, at least being sure to set MOODIR (directory to run in), MOO (name of MOO binary), and DBNAME (name of the database, without the .db).
Operation
After the script is set up, you run it and pass a single argument start or stop to start or stop your MOO process.
The script keeps a configurable number of previous compressed checkpoints (default: 4) and rotates the MOO server log for each startup.
You probably will want to rotate and store your checkpoints more often than once-per-restart, since a typical MOO will run until some external force brings it down and it is a good idea to keep some backups of your MOO's database. The LambdaMOO server is very stable and most MOOs will only need to be restarted to upgrade the MOO version or because the machine needed to be shut down or rebooted. Uptimes of months are fairly commmon on stable hardware.
One way to do these rotations and backups is to use my DB backup script which monitors the MOO server log and automatically saves a copy of the database and (potentially) pushes a copy of it off-site after every successfull checkpoint.