<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://opensimulator.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://opensimulator.org/index.php?action=history&amp;feed=atom&amp;title=Smart_Prestart_LINUX</id>
		<title>Smart Prestart LINUX - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://opensimulator.org/index.php?action=history&amp;feed=atom&amp;title=Smart_Prestart_LINUX"/>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=Smart_Prestart_LINUX&amp;action=history"/>
		<updated>2026-05-11T07:30:53Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.9</generator>

	<entry>
		<id>http://opensimulator.org/index.php?title=Smart_Prestart_LINUX&amp;diff=28902&amp;oldid=prev</id>
		<title>MakoBot: Robot: Replacing 'OpenSim' to 'OpenSimulator', which is the precise name</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=Smart_Prestart_LINUX&amp;diff=28902&amp;oldid=prev"/>
				<updated>2012-03-04T06:59:40Z</updated>
		
		<summary type="html">&lt;p&gt;Robot: Replacing &amp;#039;OpenSim&amp;#039; to &amp;#039;OpenSimulator&amp;#039;, which is the precise name&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 06:59, 4 March 2012&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;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. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;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. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;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).&amp;lt;br /&amp;gt;'''SPECIAL NOTE&amp;amp;nbsp;!!''' I use SCREEN as the shell to run the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;OpenSim &lt;/del&gt;Instances, therefore these scripts communicate / use SCREEN &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;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).&amp;lt;br /&amp;gt;'''SPECIAL NOTE&amp;amp;nbsp;!!''' I use SCREEN as the shell to run the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;OpenSimulator &lt;/ins&gt;Instances, therefore these scripts communicate / use SCREEN &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''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.&amp;lt;br /&amp;gt;'''LICENSE / USAGE:''' do whatever, use however, AS IS / WHEREIS. Fully Open to use, modify, fold, spindle, mutilate &amp;amp;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. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''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.&amp;lt;br /&amp;gt;'''LICENSE / USAGE:''' do whatever, use however, AS IS / WHEREIS. Fully Open to use, modify, fold, spindle, mutilate &amp;amp;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. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;I am gonna start with the BASH scripts for Linux, then the Console Scripts for the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;OpenSim &lt;/del&gt;Server. &amp;lt;br /&amp;gt;!!! THIS IS A SUITE OF SCRIPTS THAT WORK TOGETHER&amp;amp;nbsp;!!! &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;I am gonna start with the BASH scripts for Linux, then the Console Scripts for the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;OpenSimulator &lt;/ins&gt;Server. &amp;lt;br /&amp;gt;!!! THIS IS A SUITE OF SCRIPTS THAT WORK TOGETHER&amp;amp;nbsp;!!! &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# 1 -'''Start_OS.sh'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# 1 -'''Start_OS.sh'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* This will startup Multiple Instances of &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;OpenSim&lt;/del&gt;. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* This will startup Multiple Instances of &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;OpenSimulator&lt;/ins&gt;. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* Creates a Backup Structure and backs up critical information &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* Creates a Backup Structure and backs up critical information &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* Backs up SqlLite / MySql databases &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* Backs up SqlLite / MySql databases &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 41:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 41:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# The following need to be configured within the script for EVERY INSTANCE: (detailed comments in FIRST INSTANCE)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# The following need to be configured within the script for EVERY INSTANCE: (detailed comments in FIRST INSTANCE)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# OSInstance=&amp;quot;/opensim/instance_1&amp;quot; &amp;lt;- Location of your &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;OpenSim &lt;/del&gt;Instance&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# OSInstance=&amp;quot;/opensim/instance_1&amp;quot; &amp;lt;- Location of your &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;OpenSimulator &lt;/ins&gt;Instance&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# OSbackup=&amp;quot;/BACKup&amp;quot; &amp;lt;- Root Directory for Backup Structure (&amp;quot;/opensim/instance_1/BACKup&amp;quot;)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# OSbackup=&amp;quot;/BACKup&amp;quot; &amp;lt;- Root Directory for Backup Structure (&amp;quot;/opensim/instance_1/BACKup&amp;quot;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# DBusr=&amp;quot;DATABASE_USER_NAME&amp;quot; &amp;lt;- User Name for MySql DB Access (leave blank if using SqlLite)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# DBusr=&amp;quot;DATABASE_USER_NAME&amp;quot; &amp;lt;- User Name for MySql DB Access (leave blank if using SqlLite)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 138:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 138:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# --- set pathing next&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# --- set pathing next&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# OSInstance = Where the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;OpenSim &lt;/del&gt;Instance is installed, SET AT EVERY INSTANCE&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# OSInstance = Where the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;OpenSimulator &lt;/ins&gt;Instance is installed, SET AT EVERY INSTANCE&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# This is NOT the BIN Folder. It is one folder ABOVE the /bin&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# This is NOT the BIN Folder. It is one folder ABOVE the /bin&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>MakoBot</name></author>	</entry>

	<entry>
		<id>http://opensimulator.org/index.php?title=Smart_Prestart_LINUX&amp;diff=28495&amp;oldid=prev</id>
		<title>MakoBot: Robot: Cosmetic changes</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=Smart_Prestart_LINUX&amp;diff=28495&amp;oldid=prev"/>
				<updated>2012-03-04T04:13:31Z</updated>
		
		<summary type="html">&lt;p&gt;Robot: Cosmetic changes&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 04:13, 4 March 2012&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;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. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;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. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;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).&amp;lt;br&amp;gt;'''SPECIAL NOTE&amp;amp;nbsp;!!''' I use SCREEN as the shell to run the OpenSim Instances, therefore these scripts communicate / use SCREEN &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;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).&amp;lt;br &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/&lt;/ins&gt;&amp;gt;'''SPECIAL NOTE&amp;amp;nbsp;!!''' I use SCREEN as the shell to run the OpenSim Instances, therefore these scripts communicate / use SCREEN &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''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.&amp;lt;br&amp;gt;'''LICENSE / USAGE:''' do whatever, use however, AS IS / WHEREIS. Fully Open to use, modify, fold, spindle, mutilate &amp;amp;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. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''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.&amp;lt;br &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/&lt;/ins&gt;&amp;gt;'''LICENSE / USAGE:''' do whatever, use however, AS IS / WHEREIS. Fully Open to use, modify, fold, spindle, mutilate &amp;amp;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. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;I am gonna start with the BASH scripts for Linux, then the Console Scripts for the OpenSim Server. &amp;lt;br&amp;gt;!!! THIS IS A SUITE OF SCRIPTS THAT WORK TOGETHER&amp;amp;nbsp;!!! &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;I am gonna start with the BASH scripts for Linux, then the Console Scripts for the OpenSim Server. &amp;lt;br &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/&lt;/ins&gt;&amp;gt;!!! THIS IS A SUITE OF SCRIPTS THAT WORK TOGETHER&amp;amp;nbsp;!!! &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#1 -'''Start_OS.sh'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# 1 -'''Start_OS.sh'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;*This will startup Multiple Instances of OpenSim. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* This will startup Multiple Instances of OpenSim. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;*Creates a Backup Structure and backs up critical information &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* Creates a Backup Structure and backs up critical information &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;*Backs up SqlLite / MySql databases &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* Backs up SqlLite / MySql databases &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;*Packages everything into a TAR.GZ &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* Packages everything into a TAR.GZ &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;*Read the Header for detailed information.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* Read the Header for detailed information.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Command to execute =&amp;amp;nbsp;'''''&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;b&amp;gt;&lt;/del&gt;bash Start_OS.sh&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/b&amp;gt;&lt;/del&gt;'' &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Command to execute =&amp;amp;nbsp;'''''&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'''&lt;/ins&gt;bash Start_OS.sh&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'''&lt;/ins&gt;'' &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;blockquote&amp;gt;&amp;lt;br&amp;gt;&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;#!/bin/bash&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;blockquote&amp;gt;&amp;lt;br &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/&lt;/ins&gt;&amp;gt;&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;#!/bin/bash&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# FILENAME: Start_OS.sh&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# FILENAME: Start_OS.sh&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 225:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 225:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;screen -ls &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;screen -ls &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;sleep 10&amp;lt;/source&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;sleep 10&amp;lt;/source&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;br&amp;gt;'''BASH SCRIPT to Auto Shutdown Multiple Instances''' &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;br &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/&lt;/ins&gt;&amp;gt;'''BASH SCRIPT to Auto Shutdown Multiple Instances''' &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;*Inserts an alert message into Screen for the CONSOLE to send, with 2 minutes wanrning to users logged into regions on the instances. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* Inserts an alert message into Screen for the CONSOLE to send, with 2 minutes wanrning to users logged into regions on the instances. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;*Inserts shutdown command into Screen for the CONSOLE to execute. &amp;quot;Clean &amp;amp;amp; Proper shutdown&amp;quot; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* Inserts shutdown command into Screen for the CONSOLE to execute. &amp;quot;Clean &amp;amp;amp; Proper shutdown&amp;quot; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;*Could be adapted for many other functions and initiated by a chron call&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* Could be adapted for many other functions and initiated by a chron call&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Command to execute = '''''&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;b&amp;gt;&lt;/del&gt;bash Close_OS.sh&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/b&amp;gt;&lt;/del&gt;'' &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Command to execute = '''''&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'''&lt;/ins&gt;bash Close_OS.sh&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'''&lt;/ins&gt;'' &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;blockquote&amp;gt;&amp;lt;br&amp;gt;&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;#!/bin/sh &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;blockquote&amp;gt;&amp;lt;br &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/&lt;/ins&gt;&amp;gt;&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;#!/bin/sh &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Script Name: Close_OS.sh&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Script Name: Close_OS.sh&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>MakoBot</name></author>	</entry>

	<entry>
		<id>http://opensimulator.org/index.php?title=Smart_Prestart_LINUX&amp;diff=23643&amp;oldid=prev</id>
		<title>MakoBot: Removed 'Template:' prefix from template includings and/or changed external-link into internal-link</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=Smart_Prestart_LINUX&amp;diff=23643&amp;oldid=prev"/>
				<updated>2011-06-10T23:41:53Z</updated>
		
		<summary type="html">&lt;p&gt;Removed &amp;#039;Template:&amp;#039; prefix from template includings and/or changed external-link into internal-link&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 23:41, 10 June 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Template:&lt;/del&gt;Quicklinks}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{Quicklinks}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;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. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;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. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>MakoBot</name></author>	</entry>

	<entry>
		<id>http://opensimulator.org/index.php?title=Smart_Prestart_LINUX&amp;diff=20816&amp;oldid=prev</id>
		<title>Makopoppo: page positioning changed - this page will be the subpage of Automating Tasks</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=Smart_Prestart_LINUX&amp;diff=20816&amp;oldid=prev"/>
				<updated>2011-01-03T04:34:59Z</updated>
		
		<summary type="html">&lt;p&gt;page positioning changed - this page will be the subpage of &lt;a href=&quot;/wiki/Automating_Tasks&quot; title=&quot;Automating Tasks&quot;&gt;Automating Tasks&lt;/a&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 04:34, 3 January 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;{{Template:Quicklinks}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;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. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;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. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 312:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 313:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;----&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;----&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;'''BACK-LINKS''' &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Return to &lt;/ins&gt;[[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Automating Tasks&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;== Windows&amp;#160; ==&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Smart Prestart WIN]] [[Backing Up WIN]] [[Automated Upgrade WIN]] &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;== Linux&amp;#160; ==&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;[[Smart_Prestart_LINUX]] [[Backing Up LINUX]] [[Automated Upgrade LINUX&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Makopoppo</name></author>	</entry>

	<entry>
		<id>http://opensimulator.org/index.php?title=Smart_Prestart_LINUX&amp;diff=19469&amp;oldid=prev</id>
		<title>WhiteStar at 13:55, 16 November 2010</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=Smart_Prestart_LINUX&amp;diff=19469&amp;oldid=prev"/>
				<updated>2010-11-16T13:55:34Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;http://opensimulator.org/index.php?title=Smart_Prestart_LINUX&amp;amp;diff=19469&amp;amp;oldid=14979&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>WhiteStar</name></author>	</entry>

	<entry>
		<id>http://opensimulator.org/index.php?title=Smart_Prestart_LINUX&amp;diff=14979&amp;oldid=prev</id>
		<title>WhiteStar at 03:05, 16 September 2009</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=Smart_Prestart_LINUX&amp;diff=14979&amp;oldid=prev"/>
				<updated>2009-09-16T03:05:23Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 03:05, 16 September 2009&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 26:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 26:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;blockquote&amp;gt;&amp;lt;br&amp;gt;#!/bin/sh &amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# Script Name: Close_OS.sh&amp;lt;br&amp;gt;# Author: WhiteStar Magic @ OSGRID&amp;lt;br&amp;gt;# Date: August 20,2009&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# Purpose: &amp;lt;br&amp;gt;# Automated shutdown of multiple instances running on Linux under SCREEN.&amp;lt;br&amp;gt;# This warns people That a shutdown is coming in all running instances &amp;amp;amp; their regions&amp;lt;br&amp;gt;# Then after the timer is complete, it stuffs a shutdown command into the opensim instance&amp;lt;br&amp;gt;# for a proper clean shutdown. This CAN take time, be patient&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# TO USE:&amp;lt;br&amp;gt;# run following command &amp;quot; bash Close_OS.sh &amp;quot;&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# dependencies:&amp;lt;br&amp;gt;# Requires that 2 Variables MUST be set. &amp;lt;br&amp;gt;# 1) = CONmsg = Console message to users&amp;lt;br&amp;gt;# 2) = CONcmd = Console Command to issue&amp;lt;br&amp;gt;# NOTE: ^M = Return, needs to be sent with message to be executed&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# NOTE: Sleep is given in 2 seconds for notifications delay. Allows server to buffer&amp;lt;br&amp;gt;# POST notification sleep is 2 minutes to allow users to vacate&amp;lt;br&amp;gt;# &amp;lt;br&amp;gt;# Adjust the following lines to suit purpose&amp;lt;br&amp;gt;# NOTE CONmsg &amp;quot;alert general&amp;quot; is the Console Command to Broadcast msg to all regions within the instance&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;CONmsg=&amp;quot;alert general Server Shutdown in 2 minutes, Please Relocate or Logout&amp;quot;&amp;lt;br&amp;gt;CONcmd=&amp;quot;shutdown&amp;quot;&amp;lt;br&amp;gt;# -------------------------------------&amp;lt;br&amp;gt;# --- Instance Notification Process ---&amp;lt;br&amp;gt;notify()&amp;lt;br&amp;gt;{&amp;lt;br&amp;gt;echo Notifying ${instance} of ${CONmsg}&amp;lt;br&amp;gt;screen -d -r ${instance} -X stuff &amp;quot;$CONmsg&amp;quot;&amp;lt;br&amp;gt;screen -d -r ${instance} -X eval &amp;quot;stuff ^M&amp;quot;&amp;lt;br&amp;gt;}&amp;lt;br&amp;gt;# -------------------------&amp;lt;br&amp;gt;# --- COMMAND Process ---&amp;lt;br&amp;gt;command()&amp;lt;br&amp;gt;{&amp;lt;br&amp;gt;echo Shutting Down ${instance} &amp;lt;br&amp;gt;screen -d -r ${instance} -X stuff &amp;quot;$CONcmd&amp;quot;&amp;lt;br&amp;gt;screen -d -r ${instance} -X eval &amp;quot;stuff ^M&amp;quot;&amp;lt;br&amp;gt;}&amp;lt;br&amp;gt;# ----------------------------------------&amp;lt;br&amp;gt;# === NOTIFY Instances &amp;amp;amp; their REGIONS ===&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;instance=&amp;quot;INSTANCE_1&amp;quot;&amp;lt;br&amp;gt;notify&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;instance=&amp;quot;INSTANCE_2&amp;quot;&amp;lt;br&amp;gt;notify&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;instance=&amp;quot;INSTANCE_3&amp;quot;&amp;lt;br&amp;gt;notify&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# ---------------------------------------------&amp;lt;br&amp;gt;# ==== SLEEP TILL READY TO EXECUTE SHUTDOWN ===&amp;lt;br&amp;gt;# sleeping for 2 minutes, adjust as needed, in seconds&amp;lt;br&amp;gt;sleep 120 &amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# --------------------------&amp;lt;br&amp;gt;# === SHUTDOWN INSTANCES ===&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;instance=&amp;quot;INSTANCE_1&amp;quot;&amp;lt;br&amp;gt;command&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;instance=&amp;quot;INSTANCE_2&amp;quot;&amp;lt;br&amp;gt;command&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;instance=&amp;quot;INSTANCE_3&amp;quot;&amp;lt;br&amp;gt;command&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;#&amp;amp;nbsp;!!! End of Shutdown processing, wait till all instances are down. &amp;lt;br&amp;gt;# Some may take time to save and close out.&amp;lt;br&amp;gt;# &amp;lt;/blockquote&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;blockquote&amp;gt;&amp;lt;br&amp;gt;#!/bin/sh &amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# Script Name: Close_OS.sh&amp;lt;br&amp;gt;# Author: WhiteStar Magic @ OSGRID&amp;lt;br&amp;gt;# Date: August 20,2009&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# Purpose: &amp;lt;br&amp;gt;# Automated shutdown of multiple instances running on Linux under SCREEN.&amp;lt;br&amp;gt;# This warns people That a shutdown is coming in all running instances &amp;amp;amp; their regions&amp;lt;br&amp;gt;# Then after the timer is complete, it stuffs a shutdown command into the opensim instance&amp;lt;br&amp;gt;# for a proper clean shutdown. This CAN take time, be patient&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# TO USE:&amp;lt;br&amp;gt;# run following command &amp;quot; bash Close_OS.sh &amp;quot;&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# dependencies:&amp;lt;br&amp;gt;# Requires that 2 Variables MUST be set. &amp;lt;br&amp;gt;# 1) = CONmsg = Console message to users&amp;lt;br&amp;gt;# 2) = CONcmd = Console Command to issue&amp;lt;br&amp;gt;# NOTE: ^M = Return, needs to be sent with message to be executed&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# NOTE: Sleep is given in 2 seconds for notifications delay. Allows server to buffer&amp;lt;br&amp;gt;# POST notification sleep is 2 minutes to allow users to vacate&amp;lt;br&amp;gt;# &amp;lt;br&amp;gt;# Adjust the following lines to suit purpose&amp;lt;br&amp;gt;# NOTE CONmsg &amp;quot;alert general&amp;quot; is the Console Command to Broadcast msg to all regions within the instance&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;CONmsg=&amp;quot;alert general Server Shutdown in 2 minutes, Please Relocate or Logout&amp;quot;&amp;lt;br&amp;gt;CONcmd=&amp;quot;shutdown&amp;quot;&amp;lt;br&amp;gt;# -------------------------------------&amp;lt;br&amp;gt;# --- Instance Notification Process ---&amp;lt;br&amp;gt;notify()&amp;lt;br&amp;gt;{&amp;lt;br&amp;gt;echo Notifying ${instance} of ${CONmsg}&amp;lt;br&amp;gt;screen -d -r ${instance} -X stuff &amp;quot;$CONmsg&amp;quot;&amp;lt;br&amp;gt;screen -d -r ${instance} -X eval &amp;quot;stuff ^M&amp;quot;&amp;lt;br&amp;gt;}&amp;lt;br&amp;gt;# -------------------------&amp;lt;br&amp;gt;# --- COMMAND Process ---&amp;lt;br&amp;gt;command()&amp;lt;br&amp;gt;{&amp;lt;br&amp;gt;echo Shutting Down ${instance} &amp;lt;br&amp;gt;screen -d -r ${instance} -X stuff &amp;quot;$CONcmd&amp;quot;&amp;lt;br&amp;gt;screen -d -r ${instance} -X eval &amp;quot;stuff ^M&amp;quot;&amp;lt;br&amp;gt;}&amp;lt;br&amp;gt;# ----------------------------------------&amp;lt;br&amp;gt;# === NOTIFY Instances &amp;amp;amp; their REGIONS ===&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;instance=&amp;quot;INSTANCE_1&amp;quot;&amp;lt;br&amp;gt;notify&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;instance=&amp;quot;INSTANCE_2&amp;quot;&amp;lt;br&amp;gt;notify&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;instance=&amp;quot;INSTANCE_3&amp;quot;&amp;lt;br&amp;gt;notify&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# ---------------------------------------------&amp;lt;br&amp;gt;# ==== SLEEP TILL READY TO EXECUTE SHUTDOWN ===&amp;lt;br&amp;gt;# sleeping for 2 minutes, adjust as needed, in seconds&amp;lt;br&amp;gt;sleep 120 &amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# --------------------------&amp;lt;br&amp;gt;# === SHUTDOWN INSTANCES ===&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;instance=&amp;quot;INSTANCE_1&amp;quot;&amp;lt;br&amp;gt;command&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;instance=&amp;quot;INSTANCE_2&amp;quot;&amp;lt;br&amp;gt;command&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;instance=&amp;quot;INSTANCE_3&amp;quot;&amp;lt;br&amp;gt;command&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;#&amp;amp;nbsp;!!! End of Shutdown processing, wait till all instances are down. &amp;lt;br&amp;gt;# Some may take time to save and close out.&amp;lt;br&amp;gt;# &amp;lt;/blockquote&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;amp;nbsp;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;amp;nbsp;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;----&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;'''BACK-LINKS'''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;== Windows ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Smart Prestart WIN]]&amp;#160; [[Backing Up WIN]]&amp;#160;  [[Automated Upgrade WIN]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;== Linux ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Smart Prestart LINUX]]&amp;#160;  [[Backing Up LINUX]]&amp;#160;  [[Automated Upgrade LINUX]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>WhiteStar</name></author>	</entry>

	<entry>
		<id>http://opensimulator.org/index.php?title=Smart_Prestart_LINUX&amp;diff=14968&amp;oldid=prev</id>
		<title>WhiteStar: New page: 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 oth...</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=Smart_Prestart_LINUX&amp;diff=14968&amp;oldid=prev"/>
				<updated>2009-09-15T23:41:53Z</updated>
		
		<summary type="html">&lt;p&gt;New page: 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 oth...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;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. &lt;br /&gt;
&lt;br /&gt;
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).&amp;lt;br&amp;gt;'''SPECIAL NOTE&amp;amp;nbsp;!!''' I use SCREEN as the shell to run the OpenSim Instances, therefore these scripts communicate / use SCREEN &lt;br /&gt;
&lt;br /&gt;
'''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.&amp;lt;br&amp;gt;'''LICENSE / USAGE:''' do whatever, use however, AS IS / WHEREIS. Fully Open to use, modify, fold, spindle, mutilate &amp;amp;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. &lt;br /&gt;
&lt;br /&gt;
I am gonna start with the BASH scripts for Linux, then the Console Scripts for the OpenSim Server. &amp;lt;br&amp;gt;!!! THIS IS A SUITE OF SCRIPTS THAT WORK TOGETHER&amp;amp;nbsp;!!! &lt;br /&gt;
&lt;br /&gt;
#1 -'''Start_OS.sh'''&lt;br /&gt;
&lt;br /&gt;
*This will startup Multiple Instances of OpenSim. &lt;br /&gt;
*Creates a Backup Structure and backs up critical information &lt;br /&gt;
*Backs up SqlLite / MySql databases &lt;br /&gt;
*Packages everything into a TAR.GZ &lt;br /&gt;
*Read the Header for detailed information.&lt;br /&gt;
&lt;br /&gt;
'''Command to execute =&amp;amp;nbsp;'''''&amp;lt;b&amp;gt;bash Start_OS.sh&amp;lt;/b&amp;gt;'' &lt;br /&gt;
&amp;lt;blockquote&amp;gt;&amp;lt;br&amp;gt;#!/bin/bash&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# FILENAME: Start_OS.sh&amp;lt;br&amp;gt;# AUTHOR: WhiteStar Magic @ OSGrid&amp;lt;br&amp;gt;# DATE: August.20.2009&amp;lt;br&amp;gt;# REVISION: 1.0 (initial release)&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# DESCRIPTION: Starts OpenSim.exe with some pre-processing&amp;lt;br&amp;gt;# - Checks to see if Backup folders exist and if not creates backup folder structures (see MAKE_dirs)&amp;lt;br&amp;gt;# - copies opensim.log from /BIN folder to Log Backup &amp;amp;amp; renames it to OSLOG_Date-time.log&amp;lt;br&amp;gt;# - example of output OSLOG_16082009-1008.log&amp;lt;br&amp;gt;# - then it CLEARS the log to EMPTY in the /BIN folder so you can see everything from startup&amp;lt;br&amp;gt;# - WHY? Easier to track startup issues / debugging and helps reduce size of live opensim.log&amp;lt;br&amp;gt;# - Copies out Several key pieces of data and stores them in the /INSTANCE/BACKup Structure&amp;lt;br&amp;gt;# - Copies out *.DB files (SqlLite) into the BACKup/DB directory&amp;lt;br&amp;gt;# - Performs a MySql Dump to BACKup/DBsql of the MySql Databases **&amp;lt;br&amp;gt;# ** Handles Multiple MySql DB's or Single opensim db. See Section for detailed explanation&amp;lt;br&amp;gt;# &amp;lt;br&amp;gt;# INSTALLATION:&amp;lt;br&amp;gt;# copy this script into /opt and run with the following command bash Start_OS.sh&amp;lt;br&amp;gt;# can be installed in another directory, Adjust the script accordingly&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# The following need to be configured within the script for EVERY INSTANCE: (detailed comments in FIRST INSTANCE)&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# OSInstance=&amp;quot;/opensim/instance_1&amp;quot; &amp;amp;lt;- Location of your OpenSim Instance&amp;lt;br&amp;gt;# OSbackup=&amp;quot;/BACKup&amp;quot; &amp;amp;lt;- Root Directory for Backup Structure (&amp;quot;/opensim/instance_1/BACKup&amp;quot;)&amp;lt;br&amp;gt;# DBusr=&amp;quot;DATABASE_USER_NAME&amp;quot; &amp;amp;lt;- User Name for MySql DB Access (leave blank if using SqlLite)&amp;lt;br&amp;gt;# DBpw=&amp;quot;DATABASE_PASSWORD&amp;quot; &amp;amp;lt;- Password for MySql DB Access &amp;quot; &amp;quot;&amp;lt;br&amp;gt;# DBname=&amp;quot;opensim&amp;quot; &amp;amp;lt;- Database Name for MySql &amp;quot; &amp;quot; &amp;lt;br&amp;gt;# &amp;lt;br&amp;gt;# KUDOS &amp;amp;amp; THANKS: &amp;lt;br&amp;gt;# Thanks a LOT to the following individuals @ OSGrid &amp;lt;br&amp;gt;# Coyled, BWild, Godfrey, Hiro, DeneSparta and the rest of the gang! THANKS GUYS&amp;amp;nbsp;!&amp;lt;br&amp;gt;# An Excellent Resource for anyone interested in BASH scripting: http://tldp.org/LDP/abs/html/&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# -------------------------------------------------------------------------------------------------&amp;lt;br&amp;gt;# OSbackup = Where you want your Backup File Structure to be and send files to&amp;lt;br&amp;gt;# This will create the structure as: /INSTANCENAME/BACKup with the complete Sub-Structure beneath it&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;OSbackup=&amp;quot;/BACKup&amp;quot;&amp;lt;br&amp;gt;echo OSbackup = $OSbackup&amp;lt;br&amp;gt;# --------------------------------------------------------------------------------------&amp;lt;br&amp;gt;# DATE &amp;amp;amp; TIME String Assembly&amp;lt;br&amp;gt;# --------------------------------------------------------------------------------------&amp;lt;br&amp;gt;# Date &amp;amp;amp; Time Format on your system&amp;lt;br&amp;gt;# &amp;lt;br&amp;gt;# date&amp;amp;nbsp;%F = (%Y%m%d)&amp;lt;br&amp;gt;# date&amp;amp;nbsp;%H = 24 hr,&amp;amp;nbsp;%M - Minutes&amp;lt;br&amp;gt;# &amp;lt;br&amp;gt;TimeStamp=`date +%d%m%Y-%H%M`&amp;lt;br&amp;gt;# we now have a string which will appear as 16082009-1008&amp;lt;br&amp;gt;# --------------------------------------------------------------------------------------&amp;lt;br&amp;gt;echo TimeStamp = $TimeStamp&amp;lt;br&amp;gt;# ---------------------------------------------------------------------------------------&amp;lt;br&amp;gt;# === Make Backup Folders function ===&amp;lt;br&amp;gt;MAKE_dirs()&amp;lt;br&amp;gt;{&amp;lt;br&amp;gt;echo Error: Backup Folders do not exist, Creating structure&amp;lt;br&amp;gt;mkdir -v ${OSInstance}${OSbackup}&amp;lt;br&amp;gt;mkdir -v ${OSInstance}${OSbackup}/DB&amp;lt;br&amp;gt;mkdir -v ${OSInstance}${OSbackup}/DBsql&amp;lt;br&amp;gt;mkdir -v ${OSInstance}${OSbackup}/INI&amp;lt;br&amp;gt;mkdir -v ${OSInstance}${OSbackup}/EXPORTS&amp;lt;br&amp;gt;mkdir -v ${OSInstance}${OSbackup}/LOGS&amp;lt;br&amp;gt;mkdir -v ${OSInstance}${OSbackup}/OAR&amp;lt;br&amp;gt;mkdir -v ${OSInstance}${OSbackup}/REGIONS&amp;lt;br&amp;gt;mkdir -v ${OSInstance}${OSbackup}/TERRAINS&amp;lt;br&amp;gt;mkdir -v ${OSInstance}${OSbackup}/TXT&amp;lt;br&amp;gt;mkdir -v ${OSInstance}${OSbackup}/XML2&amp;lt;br&amp;gt;sleep 3&amp;lt;br&amp;gt;# Sleeps for 3 seconds to allow for server to update properly&amp;lt;br&amp;gt;}&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# ---------------------------------------------------------------------------------------&amp;lt;br&amp;gt;# === File Copy &amp;amp;amp; Archiving Function ===&amp;lt;br&amp;gt;COPY_files()&amp;lt;br&amp;gt;{&amp;lt;br&amp;gt;# copy log file over&amp;lt;br&amp;gt;cp ${OSInstance}/bin/OpenSim.log ${OSInstance}${OSbackup}/LOGS/OpenSim.log&amp;lt;br&amp;gt;mv ${OSInstance}${OSbackup}/LOGS/OpenSim.log ${OSInstance}${OSbackup}/LOGS/OSlog_${TimeStamp}.log&amp;lt;br&amp;gt;# &amp;lt;br&amp;gt;# NEXT FLUSHING LOG to EMPTY&amp;lt;br&amp;gt;echo LOG_CLEARED AT ${TimeStamp} &amp;amp;gt; ${OSInstance}/bin/OpenSim.log&amp;lt;br&amp;gt;# &amp;lt;br&amp;gt;# NEXT copy out the estate info from /bin&amp;lt;br&amp;gt;cp ${OSInstance}/bin/estate_settings.xml ${OSInstance}${OSbackup}/LOGS/estate_settings.xml&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# NEXT we copy the *.DB files for SqlLite IF they are in use. These all have DB extension&amp;lt;br&amp;gt;rsync -r --prune-empty-dirs --progress --filter '+ *.db' --filter '+ */' --filter '- *' ${OSInstance}/bin/* ${OSInstance}${OSbackup}/DB/&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# NEXT we get MySql DB Dump&amp;lt;br&amp;gt;if [ ${DBusr}tst&amp;amp;nbsp;!= &amp;quot;tst&amp;quot; ]; then&amp;lt;br&amp;gt;echo MySql DB Backup of ${DBname} being processed&amp;lt;br&amp;gt;mysqldump --opt -u${DBusr} -p${DBpw} ${DBname} &amp;amp;gt; ${OSInstance}${OSbackup}/DBsql/${DBname}.sql&amp;lt;br&amp;gt;fi;&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# copying ALL txt files over (safety precaution if you have console scripts or other text files located in /BIN+ folders)&amp;lt;br&amp;gt;rsync -r --prune-empty-dirs --progress --filter '+ *.txt' --filter '+ */' --filter '- *' ${OSInstance}/TXT/* &amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# copying ALL ini files over&amp;lt;br&amp;gt;rsync -r --prune-empty-dirs --progress --filter '+ *.ini' --filter '+ */' --filter '- *' ${OSInstance}/bin/* ${OSInstance}${OSbackup}/INI/&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# copy regions files over &amp;lt;br&amp;gt;cp -r -u -p ${OSInstance}/bin/Regions/*.* ${OSInstance}${OSbackup}/REGIONS&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# copy exports files over &amp;lt;br&amp;gt;cp -r -u -p ${OSInstance}/bin/exports/* ${OSInstance}${OSbackup}/EXPORTS&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# MAKE A TAR.GZ Compressed FILE of the backup data. Delete previous one, generate new one with TimeStamp&amp;lt;br&amp;gt;rm -f ${OSInstance}${OSbackup}/BACKUP_*.tar.gz &amp;lt;br&amp;gt;tar --create --gzip --file=${OSInstance}${OSbackup}/BACKUP_${TimeStamp}.tar.gz ${OSInstance}${OSbackup}/*&amp;lt;br&amp;gt;}&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# =====================================&amp;lt;br&amp;gt;# === NOW for the Instance Startups ===&amp;lt;br&amp;gt;# =====================================&amp;lt;br&amp;gt;# === COMMENTED READ CAREFULLY ===&amp;lt;br&amp;gt;# =====================================&amp;lt;br&amp;gt;# --- FIRST INSTANCE ---&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# --- set pathing next&amp;lt;br&amp;gt;# OSInstance = Where the OpenSim Instance is installed, SET AT EVERY INSTANCE&amp;lt;br&amp;gt;# This is NOT the BIN Folder. It is one folder ABOVE the /bin&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;OSInstance=&amp;quot;/opensim/INSTANCE_1&amp;quot;&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# --- MySql Database Information to backup MySql DataBase ---&amp;lt;br&amp;gt;#&amp;amp;nbsp;!!! NOTE&amp;amp;nbsp;!!! By Default only ONE database is used &amp;quot;opensim&amp;quot; so only make one backup&amp;lt;br&amp;gt;# Some Installations have a unique DB for each instance so backup individual DB's&amp;lt;br&amp;gt;# The following info is located in your OpenSim.ini where you configured MySql Databases, See Next Line Example.&amp;lt;br&amp;gt;# storage_connection_string=&amp;quot;Data Source=localhost;Database=opensim;User ID=root;Password=***password***;&amp;quot;;&amp;lt;br&amp;gt;# DBusr = MySql DB User Name, default = root (not recomended)&amp;lt;br&amp;gt;# DBpwd = MySql DB Password, for the user account&amp;lt;br&amp;gt;# DBname= MySql Database Name, default is usually &amp;quot;opensim&amp;quot;&amp;lt;br&amp;gt;# The Following Variables MUST be set for each instance IF unique DB's are running.&amp;lt;br&amp;gt;# IF you only have ONE DB &amp;quot;opensim&amp;quot; Blank the variables AFTER the first backup&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;DBusr=&amp;quot;DATABASE_USER_NAME&amp;quot;&amp;lt;br&amp;gt;DBpw=&amp;quot;DATABASE_PASSWORD&amp;quot; &amp;lt;br&amp;gt;DBname=&amp;quot;opensim&amp;quot;&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;echo OSInstance = $OSInstance&amp;lt;br&amp;gt;cd ${OSInstance}&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# --- test to see if backup folders exist, if not make them&amp;lt;br&amp;gt;if [&amp;amp;nbsp;! -e &amp;quot;${OSInstance}${OSbackup}&amp;quot; ]; then MAKE_dirs; fi&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# --- Process &amp;amp;amp; Copy important files&amp;lt;br&amp;gt;COPY_files&amp;lt;br&amp;gt;# &amp;lt;br&amp;gt;# STARTING OPENSIM&amp;lt;br&amp;gt;# change directory to /bin to make sure and startup system as usual&amp;lt;br&amp;gt;cd ${OSInstance}/bin&amp;lt;br&amp;gt;echo we are are starting up OPENSIM Instance in ${OSInstance}/bin &amp;lt;br&amp;gt;# Start Screen commands&amp;lt;br&amp;gt;# -d Detach the elsewhere running screen (and reattach here).&amp;lt;br&amp;gt;# -m ignore $STY variable, do create a new screen session.&amp;lt;br&amp;gt;# INSTANCE_* = Descriptive name for the SCREEN for identification&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;screen -S INSTANCE_1 -d -m mono OpenSim.exe -gui=true&amp;lt;br&amp;gt;# screen -S INSTANCE_1 -d -m mono OpenSim.32BitLaunch.exe -gui=true&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# NOTE&amp;amp;nbsp;!! USE &amp;quot;OpenSim.32BitLaunch.exe&amp;quot; if running on 64-bit Operating system&amp;lt;br&amp;gt;sleep 3&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# sleep is here because systems need a bit of time to not overload the server&amp;lt;br&amp;gt;# Adjust according to need&amp;lt;br&amp;gt;# -----------------------&amp;lt;br&amp;gt;# --- SECOND INSTANCE ---&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;OSInstance=&amp;quot;/opensim/INSTANCE_2&amp;quot;&amp;lt;br&amp;gt;DBusr=&amp;quot;DATABASE_USER_NAME&amp;quot;&amp;lt;br&amp;gt;DBpw=&amp;quot;DATABASE_PASSWORD&amp;quot;&amp;lt;br&amp;gt;DBname=&amp;quot;opensim&amp;quot;&amp;lt;br&amp;gt;cd ${OSInstance}&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;if [&amp;amp;nbsp;! -e &amp;quot;${OSInstance}${OSbackup}&amp;quot; ]; then MAKE_dirs; fi&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;COPY_files&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;cd ${OSInstance}/bin&amp;lt;br&amp;gt;echo we are are starting up OPENSIM Instance in ${OSInstance}/bin &amp;lt;br&amp;gt;screen -S INSTANCE_2 -d -m mono OpenSim.exe -gui=true&amp;lt;br&amp;gt;# screen -S INSTANCE_2 -d -m mono OpenSim.32BitLaunch.exe -gui=true&amp;lt;br&amp;gt;sleep 3&amp;lt;br&amp;gt;# ----------------------&amp;lt;br&amp;gt;# --- THIRD INSTANCE ---&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;OSInstance=&amp;quot;/opensim/INSTANCE_3&amp;quot;&amp;lt;br&amp;gt;DBusr=&amp;quot;DATABASE_USER_NAME&amp;quot;&amp;lt;br&amp;gt;DBpw=&amp;quot;DATABASE_PASSWORD&amp;quot; &amp;lt;br&amp;gt;DBname=&amp;quot;opensim&amp;quot;&amp;lt;br&amp;gt;cd ${OSInstance}&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;if [&amp;amp;nbsp;! -e &amp;quot;${OSInstance}${OSbackup}&amp;quot; ]; then MAKE_dirs; fi&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;COPY_files&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;cd ${OSInstance}/bin&amp;lt;br&amp;gt;echo we are are starting up OPENSIM Instance in ${OSInstance}/bin &amp;lt;br&amp;gt;screen -S INSTANCE_3 -d -m mono OpenSim.exe -gui=true&amp;lt;br&amp;gt;# screen -S INSTANCE_3 -d -m mono OpenSim.32BitLaunch.exe -gui=true&amp;lt;br&amp;gt;sleep 3&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# === END of Server-2 Startup Processing&amp;lt;br&amp;gt;# --- show the screen list to verify that the instances are all running as they should be. &amp;lt;br&amp;gt;screen -ls &amp;lt;br&amp;gt;sleep 10 &amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;'''BASH SCRIPT to Auto Shutdown Multiple Instances''' &lt;br /&gt;
&lt;br /&gt;
*Inserts an alert message into Screen for the CONSOLE to send, with 2 minutes wanrning to users logged into regions on the instances. &lt;br /&gt;
*Inserts shutdown command into Screen for the CONSOLE to execute. &amp;quot;Clean &amp;amp;amp; Proper shutdown&amp;quot; &lt;br /&gt;
*Could be adapted for many other functions and initiated by a chron call&lt;br /&gt;
&lt;br /&gt;
'''Command to execute = '''''&amp;lt;b&amp;gt;bash Close_OS.sh&amp;lt;/b&amp;gt;'' &lt;br /&gt;
&amp;lt;blockquote&amp;gt;&amp;lt;br&amp;gt;#!/bin/sh &amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# Script Name: Close_OS.sh&amp;lt;br&amp;gt;# Author: WhiteStar Magic @ OSGRID&amp;lt;br&amp;gt;# Date: August 20,2009&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# Purpose: &amp;lt;br&amp;gt;# Automated shutdown of multiple instances running on Linux under SCREEN.&amp;lt;br&amp;gt;# This warns people That a shutdown is coming in all running instances &amp;amp;amp; their regions&amp;lt;br&amp;gt;# Then after the timer is complete, it stuffs a shutdown command into the opensim instance&amp;lt;br&amp;gt;# for a proper clean shutdown. This CAN take time, be patient&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# TO USE:&amp;lt;br&amp;gt;# run following command &amp;quot; bash Close_OS.sh &amp;quot;&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# dependencies:&amp;lt;br&amp;gt;# Requires that 2 Variables MUST be set. &amp;lt;br&amp;gt;# 1) = CONmsg = Console message to users&amp;lt;br&amp;gt;# 2) = CONcmd = Console Command to issue&amp;lt;br&amp;gt;# NOTE: ^M = Return, needs to be sent with message to be executed&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# NOTE: Sleep is given in 2 seconds for notifications delay. Allows server to buffer&amp;lt;br&amp;gt;# POST notification sleep is 2 minutes to allow users to vacate&amp;lt;br&amp;gt;# &amp;lt;br&amp;gt;# Adjust the following lines to suit purpose&amp;lt;br&amp;gt;# NOTE CONmsg &amp;quot;alert general&amp;quot; is the Console Command to Broadcast msg to all regions within the instance&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;CONmsg=&amp;quot;alert general Server Shutdown in 2 minutes, Please Relocate or Logout&amp;quot;&amp;lt;br&amp;gt;CONcmd=&amp;quot;shutdown&amp;quot;&amp;lt;br&amp;gt;# -------------------------------------&amp;lt;br&amp;gt;# --- Instance Notification Process ---&amp;lt;br&amp;gt;notify()&amp;lt;br&amp;gt;{&amp;lt;br&amp;gt;echo Notifying ${instance} of ${CONmsg}&amp;lt;br&amp;gt;screen -d -r ${instance} -X stuff &amp;quot;$CONmsg&amp;quot;&amp;lt;br&amp;gt;screen -d -r ${instance} -X eval &amp;quot;stuff ^M&amp;quot;&amp;lt;br&amp;gt;}&amp;lt;br&amp;gt;# -------------------------&amp;lt;br&amp;gt;# --- COMMAND Process ---&amp;lt;br&amp;gt;command()&amp;lt;br&amp;gt;{&amp;lt;br&amp;gt;echo Shutting Down ${instance} &amp;lt;br&amp;gt;screen -d -r ${instance} -X stuff &amp;quot;$CONcmd&amp;quot;&amp;lt;br&amp;gt;screen -d -r ${instance} -X eval &amp;quot;stuff ^M&amp;quot;&amp;lt;br&amp;gt;}&amp;lt;br&amp;gt;# ----------------------------------------&amp;lt;br&amp;gt;# === NOTIFY Instances &amp;amp;amp; their REGIONS ===&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;instance=&amp;quot;INSTANCE_1&amp;quot;&amp;lt;br&amp;gt;notify&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;instance=&amp;quot;INSTANCE_2&amp;quot;&amp;lt;br&amp;gt;notify&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;instance=&amp;quot;INSTANCE_3&amp;quot;&amp;lt;br&amp;gt;notify&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# ---------------------------------------------&amp;lt;br&amp;gt;# ==== SLEEP TILL READY TO EXECUTE SHUTDOWN ===&amp;lt;br&amp;gt;# sleeping for 2 minutes, adjust as needed, in seconds&amp;lt;br&amp;gt;sleep 120 &amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;# --------------------------&amp;lt;br&amp;gt;# === SHUTDOWN INSTANCES ===&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;instance=&amp;quot;INSTANCE_1&amp;quot;&amp;lt;br&amp;gt;command&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;instance=&amp;quot;INSTANCE_2&amp;quot;&amp;lt;br&amp;gt;command&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;instance=&amp;quot;INSTANCE_3&amp;quot;&amp;lt;br&amp;gt;command&amp;lt;br&amp;gt;#&amp;lt;br&amp;gt;#&amp;amp;nbsp;!!! End of Shutdown processing, wait till all instances are down. &amp;lt;br&amp;gt;# Some may take time to save and close out.&amp;lt;br&amp;gt;# &amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&lt;/div&gt;</summary>
		<author><name>WhiteStar</name></author>	</entry>

	</feed>