Smart Prestart LINUX

As most of you are aware, this can be quite a tedious chore to start multiple instances, back them up, shut them down. Being an Automation type, I created the following scripts to help others who are tired of the tedious aspects.

The usage of this requires BASH as they are BASH scripts and server console scripts. I used BASH because it is common to all distro's of Linux and therefore the most portable but as we know, even that is subject to slight variations, so therefore I cannot guarantee that this will work on your distro but they should be adaptable. These were developed and tested on Centos 5.3 with MONO 2.5 (no mono dependency at all). SPECIAL NOTE !! I use SCREEN as the shell to run the OpenSimulator Instances, therefore these scripts communicate / use SCREEN

DISCLAIMER: I do not guarantee complete operation OR compatibility on all distro's. I accept NO RESPONSIBILITY for their use or issues resulting from their use. LICENSE / USAGE: do whatever, use however, AS IS / WHEREIS. Fully Open to use, modify, fold, spindle, mutilate &amp; staple. IF you improve or Optimize the materials presented here, it would be certainly appreciated if you post those changes / mods so that others can benefit from them.

I am gonna start with the BASH scripts for Linux, then the Console Scripts for the OpenSimulator Server. !!! THIS IS A SUITE OF SCRIPTS THAT WORK TOGETHER !!!


 * 1) 1 -Start_OS.sh


 * This will startup Multiple Instances of OpenSimulator.
 * Creates a Backup Structure and backs up critical information
 * Backs up SqlLite / MySql databases
 * Packages everything into a TAR.GZ
 * Read the Header for detailed information.

Command to execute = bash Start_OS.sh ""

BASH SCRIPT to Auto Shutdown Multiple Instances


 * Inserts an alert message into Screen for the CONSOLE to send, with 2 minutes wanrning to users logged into regions on the instances.
 * Inserts shutdown command into Screen for the CONSOLE to execute. "Clean &amp; Proper shutdown"
 * Could be adapted for many other functions and initiated by a chron call

Command to execute = bash Close_OS.sh ""

Return to Automating Tasks