<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=3509&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / MongoDB issues]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=3509</link>
		<description><![CDATA[The most recent posts in MongoDB issues.]]></description>
		<lastBuildDate>Thu, 14 May 2020 16:56:07 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: MongoDB issues]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21725#p21725</link>
			<description><![CDATA[<p>I could solve it, I found and used this init: <a href="https://github.com/mongodb/mongo/blob/master/debian/init.d" rel="nofollow">https://github.com/mongodb/mongo/blob/m … ian/init.d</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Jokah)]]></author>
			<pubDate>Thu, 14 May 2020 16:56:07 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21725#p21725</guid>
		</item>
		<item>
			<title><![CDATA[Re: MongoDB issues]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21719#p21719</link>
			<description><![CDATA[<p>I tryed the procedure you suggested, I&#039;ve installed mongodb-org-unstable-server-4.3.6-1.el6.x86_64.rpm and I tryed use the mongod inside<br />/tmp/etc/init.d/mongod and placed it in /etc/init.d, but its not working, some edit are needed but I am not really good at it, some stuff I seen that indeed seems wrong for devuan but as i don&#039;t know redhat I dunno in which matter it should be changed.. for example:</p><p># chkconfig: 35 85 15<br /># description: Mongo is a scalable, document-oriented database.<br /># processname: mongod<br /># config: /etc/mongod.conf</p><p>. /etc/rc.d/init.d/functions &lt;----- this line</p><p># All variables set before this point can be overridden by users, by<br /># setting them directly in the SYSCONFIG file. Use this to explicitly<br /># override these values, at your own risk.<br />SYSCONFIG=&quot;/etc/sysconfig/mongod&quot;<br />if [ -f &quot;$SYSCONFIG&quot; ]; then<br />&#160; &#160; . &quot;$SYSCONFIG&quot;<br />fi</p><p>this procedure also won&#039;t work either, and there could be more, but I don&#039;t know how to fix it propery, sorry.</p>]]></description>
			<author><![CDATA[dummy@example.com (Jokah)]]></author>
			<pubDate>Thu, 14 May 2020 13:12:17 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21719#p21719</guid>
		</item>
		<item>
			<title><![CDATA[Re: MongoDB issues]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21711#p21711</link>
			<description><![CDATA[<p>You can go find the names of the services on your system:</p><div class="codebox"><pre><code>ls -al /etc/init.d</code></pre></div><p>This will show you the files in the directory where the service scripts are stored. If mongodb supports sysvinit, it will probably place the service file there. Maybe it&#039;s named mongodb.</p><p>I just checked a random deb file from the mongodb site, and that version only provided a systemd unit.</p><div class="codebox"><pre><code>$ dpkg-deb --contents mongodb-org-unstable-server_4.3.6_amd64.deb | grep -iE &#039;systemd|init|rc&#039;
drwxr-xr-x root/root         0 2013-12-19 00:41 ./lib/systemd/
drwxr-xr-x root/root         0 2013-12-19 00:41 ./lib/systemd/system/
-rw-r--r-- root/root       716 2013-12-19 00:41 ./lib/systemd/system/mongod.service</code></pre></div><p>The packages are geared towards debian, of course, which uses systemd.</p><p>So it looks like you will have to adapt an init script to run your daemon. You could investigate using the sysd2v script (<a href="http://www.trek.eu.org/devel/sysd2v/" rel="nofollow">http://www.trek.eu.org/devel/sysd2v/</a>) that will try to read the unit file and write you a template for an init script.</p><p>But also perhaps an old-school init script from the interwebs might be adapted too: <a href="https://github.com/shoken0x/mongodb-init-script" rel="nofollow">https://github.com/shoken0x/mongodb-init-script</a></p><p>EDIT:<br />On second thought, you should try using the init script from the rpm that is built for CentOS 6.</p><div class="codebox"><pre><code>wget http://repo.mongodb.org/yum/redhat/6/mongodb-org/4.3/x86_64/RPMS/mongodb-org-unstable-server-4.3.6-1.el6.x86_64.rpm
mkdir -p tmp ; cd tmp
rpm2cpio &lt; ../mongodb-org-unstable-server-4.3.6-1.el6.x86_64.rpm | cpio -idmv</code></pre></div><p>To run the above commands you will need to install rpm2cpio and cpio packages.<br />Then, inside the tmp/etc/init.d directory you will have the init script! It might need adjusting for a devuan (debian-family) distro, so I can look through it if you&#039;re not ready for that. Once you&#039;re satisfied the init script calls the right binaries and uses the right paths, place it in /etc/init.d and then:</p><div class="codebox"><pre><code>update-rc.d mongod defaults</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (bgstack15)]]></author>
			<pubDate>Thu, 14 May 2020 00:43:09 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21711#p21711</guid>
		</item>
		<item>
			<title><![CDATA[MongoDB issues]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21710#p21710</link>
			<description><![CDATA[<p>Hi, I need to install MongoDB Community Edition, so I&#039;ve tryed to follow the instruction provided here : <a href="https://docs.mongodb.com/manual/tutorial/install-mongodb-on-debian/" rel="nofollow">https://docs.mongodb.com/manual/tutoria … on-debian/</a></p><p>actually everything installed flawless, until I try to install the service (the docs even mention that both systemd and system V init) are supported so I went stright forward with doing: service mongod start and I get &quot;mongod: unrecognized service&quot;, any clue how to solve this? anybody ever tryed to install and run successfully MongoDB? (I am on Devuan 3.0)</p>]]></description>
			<author><![CDATA[dummy@example.com (Jokah)]]></author>
			<pubDate>Wed, 13 May 2020 23:45:44 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21710#p21710</guid>
		</item>
	</channel>
</rss>
