<?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=Linux_Service_with_sytemd</id>
		<title>Linux Service with sytemd - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://opensimulator.org/index.php?action=history&amp;feed=atom&amp;title=Linux_Service_with_sytemd"/>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=Linux_Service_with_sytemd&amp;action=history"/>
		<updated>2026-04-05T04:55:00Z</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=Linux_Service_with_sytemd&amp;diff=31318&amp;oldid=prev</id>
		<title>Gsusin: Created page with &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 &quot;opensim&quot;.  Create a...&quot;</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=Linux_Service_with_sytemd&amp;diff=31318&amp;oldid=prev"/>
				<updated>2012-11-22T20:00:06Z</updated>
		
		<summary type="html">&lt;p&gt;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;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&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>