<?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/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Gsusin</id>
		<title>OpenSimulator - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://opensimulator.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Gsusin"/>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/wiki/Special:Contributions/Gsusin"/>
		<updated>2026-05-12T05:28:18Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.19.9</generator>

	<entry>
		<id>http://opensimulator.org/wiki/Automating_Tasks</id>
		<title>Automating Tasks</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/wiki/Automating_Tasks"/>
				<updated>2012-11-22T20:04:18Z</updated>
		
		<summary type="html">&lt;p&gt;Gsusin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Quicklinks}}&lt;br /&gt;
&lt;br /&gt;
'''This page is badly out of date since OpenSimulator now uses a single ROBUST executable to run all services by default when in grid mode, instead of separate UserServer, GridServer, AssetServer, etc.  It would be good to adapt this page to that new reality.'''&lt;br /&gt;
&lt;br /&gt;
== Automate Grid Startup ==&lt;br /&gt;
=== Windows ===&lt;br /&gt;
Create a batch file to start up your grid, e.g. startGrid.bat ;&lt;br /&gt;
&lt;br /&gt;
  @Echo OFF&lt;br /&gt;
 &lt;br /&gt;
 For /F &amp;quot;Usebackq&amp;quot; %%i In (`Tasklist ^| Find /C &amp;quot;OpenSim&amp;quot;`) Do If /I %%i GTR 0 Echo There are %%i OpenSimulator processes running already. I quit! &amp;amp; Goto END&lt;br /&gt;
 &lt;br /&gt;
 :: %PROGRAMFILES% expands to your normal application path&lt;br /&gt;
 :: On an English system this is normally C:\Program Files&lt;br /&gt;
 :: If you run a 64-bit Windows, with OpenSimulator as a 32-bit&lt;br /&gt;
 :: application, substitute with %PROGRAMFILES(X86)%&lt;br /&gt;
 &lt;br /&gt;
 Echo Starting User Server...&lt;br /&gt;
 start &amp;quot;UserServer&amp;quot; /MIN /D &amp;quot;%PROGRAMFILES%\OpenSim&amp;quot; OpenSim.Grid.UserServer.exe&lt;br /&gt;
 sleep 5&lt;br /&gt;
 Echo Starting Grid Server...&lt;br /&gt;
 start &amp;quot;GridServer&amp;quot; /MIN /D &amp;quot;%PROGRAMFILES%\OpenSim&amp;quot; OpenSim.Grid.GridServer.exe&lt;br /&gt;
 sleep 5&lt;br /&gt;
 Echo Starting Asset Server...&lt;br /&gt;
 start &amp;quot;AssetServer&amp;quot; /MIN /D &amp;quot;%PROGRAMFILES%\OpenSim&amp;quot; OpenSim.Grid.AssetServer.exe&lt;br /&gt;
 sleep 5&lt;br /&gt;
 Echo Starting Inventory Server...&lt;br /&gt;
 start &amp;quot;InventoryServer&amp;quot; /MIN /D &amp;quot;%PROGRAMFILES%\OpenSim&amp;quot; OpenSim.Grid.InventoryServer.exe&lt;br /&gt;
 sleep 5&lt;br /&gt;
 Echo Starting Messaging Server...&lt;br /&gt;
 start &amp;quot;MessagingServer&amp;quot; /MIN /D &amp;quot;%PROGRAMFILES%\OpenSim&amp;quot; OpenSim.Grid.MessagingServer.exe&lt;br /&gt;
 sleep 5&lt;br /&gt;
 Echo Starting Region Server...&lt;br /&gt;
 start &amp;quot;RegionServer&amp;quot; /MIN /D &amp;quot;%PROGRAMFILES%\OpenSim&amp;quot; OpenSim.exe -gridmode=true&lt;br /&gt;
 &lt;br /&gt;
 :END&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PS! Check that you have sleep command installed, I'm unsure if all Windows versions have that.&amp;lt;br /&amp;gt;&lt;br /&gt;
If sleep is not installed one can use a localhost ping instead to replace &amp;quot;sleep 3&amp;quot;.&lt;br /&gt;
 PING -n 4 127.0.0.1&amp;gt;nul&lt;br /&gt;
This knowledgebase article describes how to add a batch file to startup of Windows (before logon).&amp;lt;br /&amp;gt;&lt;br /&gt;
[http://support.microsoft.com/kb/q243486/ http://support.microsoft.com/kb/q243486/]&amp;lt;br /&amp;gt;&lt;br /&gt;
Note that you have to start all applications and answer the configuration questions once before adding it to any startup.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you start the server before logon then there will be no window to close if you want to shut down the server, so you can create a &amp;quot;StopGrid.BAT&amp;quot; with:&lt;br /&gt;
 taskkill /FI &amp;quot;IMAGENAME eq OpenSim.*&amp;quot;&lt;br /&gt;
 sleep 3&lt;br /&gt;
 taskkill /FI &amp;quot;IMAGENAME eq OpenSim.*&amp;quot;&lt;br /&gt;
 sleep 3&lt;br /&gt;
 taskkill /F /FI &amp;quot;IMAGENAME eq OpenSim.*&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Or a more advanced batch that shut server processes down in the opposite order as recommended in the manual.&lt;br /&gt;
 @Echo OFF&lt;br /&gt;
 &lt;br /&gt;
 For /F &amp;quot;Usebackq&amp;quot; %%i In (`Tasklist ^| Find /C &amp;quot;OpenSim&amp;quot;`) Do If /I %%i EQU 0 Echo There are no OpenSimulator processes running. Nothing to stop.. &amp;amp; Goto END&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Echo Stopping Region Server...&lt;br /&gt;
 taskkill /T /IM OpenSim.exe &amp;gt; NUL 2&amp;gt;&amp;amp;1&lt;br /&gt;
 If ERRORLEVEL 128 Echo Region Server was not running! &amp;amp; Echo. &amp;amp; Goto n1&lt;br /&gt;
 :r1&lt;br /&gt;
 If ERRORLEVEL 1 taskkill /T /F /IM OpenSim.exe &amp;gt; NUL 2&amp;gt;&amp;amp;1&lt;br /&gt;
 If ERRORLEVEL 0 Echo Region Server stopped. &amp;amp; Echo. &amp;amp; Goto n1&lt;br /&gt;
 Goto r1&lt;br /&gt;
 &lt;br /&gt;
 :n1&lt;br /&gt;
 Echo Stopping Messaging Server...&lt;br /&gt;
 taskkill /T /IM OpenSim.Grid.MessagingServer.exe &amp;gt; NUL 2&amp;gt;&amp;amp;1&lt;br /&gt;
 If ERRORLEVEL 128 Echo Inventory Server was not running! &amp;amp; Echo. &amp;amp; Goto n2&lt;br /&gt;
 :r2&lt;br /&gt;
 If ERRORLEVEL 1 taskkill /T /F /IM OpenSim.Grid.MessagingServer.exe &amp;gt; NUL 2&amp;gt;&amp;amp;1&lt;br /&gt;
 If ERRORLEVEL 0 Echo IMessaging Server stopped. &amp;amp; Echo. &amp;amp; Goto n2&lt;br /&gt;
 Goto r2&lt;br /&gt;
 &lt;br /&gt;
 :n2&lt;br /&gt;
 Echo Stopping Inventory Server...&lt;br /&gt;
 taskkill /T /IM OpenSim.Grid.InventoryServer.exe &amp;gt; NUL 2&amp;gt;&amp;amp;1&lt;br /&gt;
 If ERRORLEVEL 128 Echo Inventory Server was not running! &amp;amp; Echo. &amp;amp; Goto n3&lt;br /&gt;
 :r3&lt;br /&gt;
 If ERRORLEVEL 1 taskkill /T /F /IM OpenSim.Grid.InventoryServer.exe &amp;gt; NUL 2&amp;gt;&amp;amp;1&lt;br /&gt;
 If ERRORLEVEL 0 Echo Inventory Server stopped. &amp;amp; Echo. &amp;amp; Goto n3&lt;br /&gt;
 Goto r3&lt;br /&gt;
 &lt;br /&gt;
 :n3&lt;br /&gt;
 Echo Stopping Asset Server...&lt;br /&gt;
 taskkill /T /IM OpenSim.Grid.AssetServer.exe &amp;gt; NUL 2&amp;gt;&amp;amp;1&lt;br /&gt;
 If ERRORLEVEL 128 Echo Asset Server was not running! &amp;amp; Echo. &amp;amp; Goto n4&lt;br /&gt;
 :r4&lt;br /&gt;
 If ERRORLEVEL 1 taskkill /T /F /IM OpenSim.Grid.AssetServer.exe &amp;gt; NUL 2&amp;gt;&amp;amp;1&lt;br /&gt;
 If ERRORLEVEL 0 Echo Asset Server stopped. &amp;amp; Echo. &amp;amp; Goto n4&lt;br /&gt;
 Goto r4&lt;br /&gt;
 &lt;br /&gt;
 :n4&lt;br /&gt;
 Echo Stopping Grid Server...&lt;br /&gt;
 taskkill /T /IM OpenSim.Grid.GridServer.exe &amp;gt; NUL 2&amp;gt;&amp;amp;1&lt;br /&gt;
 If ERRORLEVEL 128 Echo Grid Server was not running! &amp;amp; Echo. &amp;amp; Goto n5&lt;br /&gt;
 :r5&lt;br /&gt;
 If ERRORLEVEL 1 taskkill /T /F /IM OpenSim.Grid.GridServer.exe &amp;gt; NUL 2&amp;gt;&amp;amp;1&lt;br /&gt;
 If ERRORLEVEL 0 Echo Grid Server stopped. &amp;amp; Echo. &amp;amp; Goto n5&lt;br /&gt;
 Goto r5&lt;br /&gt;
 &lt;br /&gt;
 :n5&lt;br /&gt;
 Echo Stopping User Server...&lt;br /&gt;
 taskkill /T /IM OpenSim.Grid.UserServer.exe &amp;gt; NUL 2&amp;gt;&amp;amp;1&lt;br /&gt;
 If ERRORLEVEL 128 Echo User Server was not running! &amp;amp; Echo. &amp;amp; Goto END&lt;br /&gt;
 :r6&lt;br /&gt;
 If ERRORLEVEL 1 taskkill /T /F /IM OpenSim.Grid.UserServer.exe &amp;gt; NUL 2&amp;gt;&amp;amp;1&lt;br /&gt;
 If ERRORLEVEL 0 Echo User Server stopped. &amp;amp; Echo. &amp;amp; Goto END&lt;br /&gt;
 Goto r6&lt;br /&gt;
 &lt;br /&gt;
 :END&lt;br /&gt;
(Batch edits, [[User:Suz|Suz]] 04:46, 27 May 2008 (PDT))&lt;br /&gt;
&lt;br /&gt;
See Also --&amp;gt; [[Smart Prestart WIN]] &lt;br /&gt;
&lt;br /&gt;
* '''Batch Files:''' &lt;br /&gt;
* Starts OpenSimulator Instance and backs up critical operational files&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Linux/Mac OS X ===&lt;br /&gt;
&lt;br /&gt;
You can use this [[Startup script linux|startup script]] &lt;br /&gt;
&lt;br /&gt;
You can use [[Linux Service|this]] setup on Linux to run your grid as a dedicated user. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Use Screen Command&lt;br /&gt;
&lt;br /&gt;
Use the screen command to automate startup &lt;br /&gt;
&lt;br /&gt;
* Setup screen command and setup shell file&lt;br /&gt;
&lt;br /&gt;
Linux install: &lt;br /&gt;
&lt;br /&gt;
 apt-get install screen (ubuntu)&lt;br /&gt;
 pacman -S screen (archlinux)&lt;br /&gt;
&lt;br /&gt;
Mac OS X: Download either MacPorts, http://www.macports.org/, or Fink, http://www.finkproject.org/ to download *nix packages MacPorts &lt;br /&gt;
&lt;br /&gt;
 sudo port install screen&lt;br /&gt;
&lt;br /&gt;
Fink &lt;br /&gt;
&lt;br /&gt;
 Need command line for Fink.&lt;br /&gt;
&lt;br /&gt;
* Create file runsim.sh&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 cd opensim/bin&lt;br /&gt;
 sleep 3&lt;br /&gt;
 screen -S UserServer -d -m  mono OpenSim.Grid.UserServer.exe&lt;br /&gt;
 sleep 3&lt;br /&gt;
 screen -S GridServer -d -m mono OpenSim.Grid.GridServer.exe&lt;br /&gt;
 sleep 3&lt;br /&gt;
 screen -S AssetServer -d -m mono OpenSim.Grid.AssetServer.exe&lt;br /&gt;
 sleep 3&lt;br /&gt;
 screen -S InventoryServer -d -m mono OpenSim.Grid.InventoryServer.exe&lt;br /&gt;
 sleep 3&lt;br /&gt;
 screen -S OpenSimulator -d -m mono OpenSim.exe -gridmode=true&lt;br /&gt;
&lt;br /&gt;
See Also --&amp;gt; [[Smart Prestart LINUX]] &lt;br /&gt;
&lt;br /&gt;
* '''Bash Scripts:''' &lt;br /&gt;
* Start multiple instances and backup critical files prior to startup &lt;br /&gt;
* Automated Shutdown of multiple instances with a 2 minute pre-warning to users in-world. &lt;br /&gt;
* NB This can be used to stuff other functions into OpenSimulator Console as well.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Startup and access servers ===&lt;br /&gt;
 ./runsim.sh&lt;br /&gt;
&lt;br /&gt;
If you have permission issues &lt;br /&gt;
 chmod 755 runsim.sh&lt;br /&gt;
&lt;br /&gt;
To see a list of the servers in screen:&lt;br /&gt;
 screen -ls or screen -list&lt;br /&gt;
&lt;br /&gt;
Output will look like the following:&lt;br /&gt;
 There are screens on:&lt;br /&gt;
      8419.OpenSim  (Detached)&lt;br /&gt;
      8403.InventoryServer  (Detached)&lt;br /&gt;
      8378.AssetServer  (Detached)&lt;br /&gt;
      8360.GridServer  (Detached)&lt;br /&gt;
      8347.UserServer  (Detached)&lt;br /&gt;
&lt;br /&gt;
To access server&lt;br /&gt;
 screen -r 8419.OpenSim&lt;br /&gt;
 screen -r 8403.InventoryServer&lt;br /&gt;
 etc.&lt;br /&gt;
&lt;br /&gt;
To exit screen, leaving server running, and to return to shell&lt;br /&gt;
 ctrl-a d&lt;br /&gt;
&lt;br /&gt;
=== Shutdown Servers ===&lt;br /&gt;
Either manually access each sceen&lt;br /&gt;
 screen -r 8419.OpenSim&lt;br /&gt;
 shutdown&lt;br /&gt;
&lt;br /&gt;
Or use&lt;br /&gt;
 killall mono&lt;br /&gt;
Or&lt;br /&gt;
 for i in `ps afxu | grep -i &amp;quot;mono.*OpenSim&amp;quot; | grep -v grep | awk {'print $2'}`; do kill $i; done&lt;br /&gt;
&lt;br /&gt;
Or to shut down each session clean, make a stop script, stopgrid.sh&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 screen -S InventoryServer -X eval &amp;quot;stuff shutdown^M&amp;quot;&lt;br /&gt;
 sleep 5&lt;br /&gt;
 screen -S AssetServer -X eval &amp;quot;stuff shutdown^M&amp;quot;&lt;br /&gt;
 sleep 5&lt;br /&gt;
 screen -S GridServer -X eval &amp;quot;stuff shutdown^M&amp;quot;&lt;br /&gt;
 sleep 5&lt;br /&gt;
 screen -S UserServer -X eval &amp;quot;stuff shutdown^M&amp;quot;&lt;br /&gt;
This depends on the screen NAME to be the same as in the startup script described above!&lt;br /&gt;
--[[User:Suz|Suz]] 01:42, 18 May 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Simulator Watchdog ==&lt;br /&gt;
Watches the simulator process under Linux&lt;br /&gt;
&lt;br /&gt;
Adding an entry to call a simple script to check the process table can restart regions that crash to the command line. Here [[User_talk:BlueWall]] is a script to accomplish this with a sample cron entry for one minute intervals. While it will not fix 100% of the crashes, it will get most cases, and help keep the grid healthy. If you have questions, you can usually find me on irc.freenode.net #opensim or #osgrid&lt;br /&gt;
&lt;br /&gt;
--[[User:BlueWall|BlueWall]] 15:53, 19 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Automate Updates ==&lt;br /&gt;
=== Linux (CentOS-5) ===&lt;br /&gt;
This script will save your settings, grab the latest release of OpenSim, build OpenSim, and restore your settings to the new release. It creates the new release in a new directory allowing you to revert to the previous release by just changing the 'current' link to point to whichever release you want to run.&lt;br /&gt;
&lt;br /&gt;
'''Note:'''&lt;br /&gt;
''This may not work well if updating from versions that are quite far apart. Minor updates should work well. Sometimes you have to clear out the SAVEDIR to prevent very old files from messing up a new update.''&lt;br /&gt;
&lt;br /&gt;
This script assumes you are using the SVN release number as the OpenSimulator directory with a link called 'current' pointing to it. So, you might, for example, have a directory called '/home/opensim/7577' and a link 'current -&amp;gt; 7577'. This script also uses a save folder for moving settings from the old release to the new.&lt;br /&gt;
&lt;br /&gt;
You will also want to compare the 'OpenSim.ini' and the 'OpenSim.ini.example' by hand after running this update script. There are often changes in this file needed for the new release. The 'diff -bB' command helps a lot in this comparison.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash -x&lt;br /&gt;
&lt;br /&gt;
CWD=`pwd`&lt;br /&gt;
MWD=&amp;quot;/home/opensim&amp;quot;  # Main Working Directory&lt;br /&gt;
SAVEDIR=&amp;quot;$MWD/save&amp;quot;  # Save Directory&lt;br /&gt;
&lt;br /&gt;
if [ ! -d $SAVEDIR ]; then mkdir $SAVEDIR; fi&lt;br /&gt;
if [ ! -d $SAVEDIR/Regions ]; then mkdir $SAVEDIR/Regions; fi&lt;br /&gt;
if [ ! -d $SAVEDIR/DataSnapshot ]; then mkdir $SAVEDIR/DataSnapshot; fi&lt;br /&gt;
if [ ! -d $SAVEDIR/config-include ]; then mkdir $SAVEDIR/config-include; fi&lt;br /&gt;
&lt;br /&gt;
cd $MWD&lt;br /&gt;
&lt;br /&gt;
# save current settings&lt;br /&gt;
cp current/bin/*.xml $SAVEDIR&lt;br /&gt;
cp current/bin/*.db $SAVEDIR&lt;br /&gt;
cp current/bin/*.ini $SAVEDIR&lt;br /&gt;
cp current/bin/config-include/*.ini $SAVEDIR/config-include/&lt;br /&gt;
cp current/bin/Regions/*xml $SAVEDIR/Regions/&lt;br /&gt;
cp current/bin/DataSnapshot/*xml $SAVEDIR/DataSnapshot/&lt;br /&gt;
&lt;br /&gt;
# Get fresh copy of OpenSimulator&lt;br /&gt;
REV=`svn info http://opensimulator.org/svn/opensim/trunk | fgrep Revision | awk '{print $2}'`&lt;br /&gt;
svn -r $REV co http://opensimulator.org/svn/opensim/trunk $REV&lt;br /&gt;
rm current&lt;br /&gt;
ln -s $REV current&lt;br /&gt;
cd current&lt;br /&gt;
./runprebuild.sh&lt;br /&gt;
nant&lt;br /&gt;
cd bin&lt;br /&gt;
# restore settings&lt;br /&gt;
if [ ! -d ./DataSnapshot ]; then mkdir ./DataSnapshot; fi&lt;br /&gt;
cp $SAVEDIR/*.xml .&lt;br /&gt;
cp $SAVEDIR/*.db .&lt;br /&gt;
cp $SAVEDIR/*.ini .&lt;br /&gt;
cp $SAVEDIR/config-include/* config-include/&lt;br /&gt;
cp $SAVEDIR/Regions/* Regions/&lt;br /&gt;
cp $SAVEDIR/DataSnapshot/* DataSnapshot/&lt;br /&gt;
cd $MWD&lt;br /&gt;
cd current&lt;br /&gt;
#&lt;br /&gt;
cd $CWD&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Linux ===&lt;br /&gt;
&lt;br /&gt;
[[Automated Upgrade LINUX]] &lt;br /&gt;
&lt;br /&gt;
* '''Bash Script:''' &lt;br /&gt;
* Automated Upgrade from Web Sourced ZIP (default uses OSGrid Repository) but can be adjusted to another repository&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Windows ===&lt;br /&gt;
&lt;br /&gt;
[[Automated Upgrade WIN]] &lt;br /&gt;
&lt;br /&gt;
* '''Batch Files:''' &lt;br /&gt;
* Automatic Upgrade batch file to make a complete upgrade from Web Source&amp;amp;nbsp;ZIP (default uses OSGrid Repository) or Local repository safely &amp;amp;amp; complete &lt;br /&gt;
* Automated &amp;quot;Switcher&amp;quot; Batch file to switch all instances over to run the new upgrade &lt;br /&gt;
* Automated &amp;quot;Reversion&amp;quot; Batch file to revert to previous version in case you have to&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Alternative methods ==&lt;br /&gt;
&lt;br /&gt;
Start/stop/restart OpenSimulator on Linux with [[Autorestart With Upstart|upstart]]&lt;br /&gt;
&lt;br /&gt;
Configure a Linux service with [[Linux Service with sytemd|systemd]]&lt;/div&gt;</summary>
		<author><name>Gsusin</name></author>	</entry>

	<entry>
		<id>http://opensimulator.org/wiki/Linux_Service_with_sytemd</id>
		<title>Linux Service with sytemd</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/wiki/Linux_Service_with_sytemd"/>
				<updated>2012-11-22T20:00:06Z</updated>
		
		<summary type="html">&lt;p&gt;Gsusin: Created page with &amp;quot;Tested with OpenSuse 12.2 and OpenSim 0.7.4 in standalone mode.  ==Configuration==  Prerequisites: OpenSim is installed in /srv/opensim/ and is owned by user &amp;quot;opensim&amp;quot;.  Create a...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Tested with OpenSuse 12.2 and OpenSim 0.7.4 in standalone mode.&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
&lt;br /&gt;
Prerequisites: OpenSim is installed in /srv/opensim/ and is owned by user &amp;quot;opensim&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Create a file with service definition in /lib/systemd/system/opensim.service:&lt;br /&gt;
 [Unit]&lt;br /&gt;
 Description=OpenSim Service&lt;br /&gt;
 After=syslog.target network.target&lt;br /&gt;
 &lt;br /&gt;
 [Service]&lt;br /&gt;
 User=opensim&lt;br /&gt;
 WorkingDirectory=/srv/opensim/bin&lt;br /&gt;
 ExecStart=/usr/bin/screen -S OpenSimService -D -m mono OpenSim.exe -gui=true&lt;br /&gt;
 ExecStop=/usr/bin/screen -d -r OpenSimService -X stuff &amp;quot;shutdown&amp;quot; ; /usr/bin/screen -d -r OpenSimService -X eval &amp;quot;stuff ^M&amp;quot;&lt;br /&gt;
 KillMode=none&lt;br /&gt;
 &lt;br /&gt;
 [Install]&lt;br /&gt;
 WantedBy=multi-user.target&lt;br /&gt;
&lt;br /&gt;
Then add it to systemd and start it:&lt;br /&gt;
 systemctl enable  opensim.service&lt;br /&gt;
 systemctl start  opensim.service&lt;br /&gt;
&lt;br /&gt;
The service should be running now. &lt;br /&gt;
&lt;br /&gt;
If you want to type commands in the server console, just attach the screen:&lt;br /&gt;
 su opensim -c 'screen -r OpenSimService'&lt;br /&gt;
&lt;br /&gt;
To detach the screen, type &amp;quot;CTRL + a + d&amp;quot;.&lt;/div&gt;</summary>
		<author><name>Gsusin</name></author>	</entry>

	</feed>