<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:27:27 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-12048] Calling &quot;service mongod start&quot; with mongod running prevents &quot;service mongod stop&quot; from working</title>
                <link>https://jira.mongodb.org/browse/SERVER-12048</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Running the init script to start the server while it&apos;s already running prevents stopping the server with the init script from working. &lt;/p&gt;

&lt;p&gt;I could not reproduce this with server 2.4.8 &lt;/p&gt;</description>
                <environment>Tested in centos 6</environment>
        <key id="101927">SERVER-12048</key>
            <summary>Calling &quot;service mongod start&quot; with mongod running prevents &quot;service mongod stop&quot; from working</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="brian.samek@mongodb.com">Brian Samek</assignee>
                                    <reporter username="ernie.hershey@mongodb.com">Ernie Hershey</reporter>
                        <labels>
                            <label>code-only</label>
                    </labels>
                <created>Wed, 11 Dec 2013 19:22:42 +0000</created>
                <updated>Fri, 7 Apr 2023 16:32:05 +0000</updated>
                            <resolved>Thu, 25 Aug 2016 17:37:19 +0000</resolved>
                                    <version>2.5.5</version>
                                    <fixVersion>3.0.13</fixVersion>
                    <fixVersion>3.2.10</fixVersion>
                    <fixVersion>3.3.12</fixVersion>
                                    <component>Packaging</component>
                                        <votes>2</votes>
                                    <watches>10</watches>
                                                                                                                <comments>
                            <comment id="1371149" author="xgen-internal-githook" created="Mon, 29 Aug 2016 20:36:51 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;bsamek&apos;, u&apos;name&apos;: u&apos;Brian Samek&apos;, u&apos;email&apos;: u&apos;brian.samek@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-12048&quot; title=&quot;Calling &amp;quot;service mongod start&amp;quot; with mongod running prevents &amp;quot;service mongod stop&amp;quot; from working&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-12048&quot;&gt;&lt;del&gt;SERVER-12048&lt;/del&gt;&lt;/a&gt; Don&apos;t start mongod if pidfile exists&lt;br/&gt;
Branch: v3.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/4f52ad46435d9f3776e0d37dca26cec1b9fc9ab8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/4f52ad46435d9f3776e0d37dca26cec1b9fc9ab8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1371145" author="xgen-internal-githook" created="Mon, 29 Aug 2016 20:34:38 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;bsamek&apos;, u&apos;name&apos;: u&apos;Brian Samek&apos;, u&apos;email&apos;: u&apos;brian.samek@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-12048&quot; title=&quot;Calling &amp;quot;service mongod start&amp;quot; with mongod running prevents &amp;quot;service mongod stop&amp;quot; from working&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-12048&quot;&gt;&lt;del&gt;SERVER-12048&lt;/del&gt;&lt;/a&gt; Don&apos;t start mongod if pidfile exists&lt;br/&gt;
Branch: v3.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/133c8ccd7922518785f4086eb172c23dcdb24d82&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/133c8ccd7922518785f4086eb172c23dcdb24d82&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1367969" author="xgen-internal-githook" created="Thu, 25 Aug 2016 17:29:55 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;bsamek&apos;, u&apos;name&apos;: u&apos;Brian Samek&apos;, u&apos;email&apos;: u&apos;brian.samek@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-12048&quot; title=&quot;Calling &amp;quot;service mongod start&amp;quot; with mongod running prevents &amp;quot;service mongod stop&amp;quot; from working&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-12048&quot;&gt;&lt;del&gt;SERVER-12048&lt;/del&gt;&lt;/a&gt; Don&apos;t start mongod if pidfile exists&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/3eaf36bc9fb28f9ca63b0d7de33e9f587aa88325&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/3eaf36bc9fb28f9ca63b0d7de33e9f587aa88325&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1057120" author="jonathanv" created="Sat, 10 Oct 2015 00:10:01 +0000"  >&lt;p&gt;FWIW, I am experiencing the same thing on ubuntu 12, however this happens on the first run of `service mongod start`.  &lt;/p&gt;

&lt;p&gt;it looks like process id that ran `service mongod start` is written to /var/run , but the actual process id of the mongod seems to be 2 numbers higher.&lt;/p&gt;

&lt;p&gt;this wasn&apos;t on a fresh install.  i upgraded from 2.x.  but it looks like all my init/config scripts were correctly cleared out and replaced.&lt;/p&gt;</comment>
                            <comment id="497155" author="rgnitz" created="Tue, 11 Feb 2014 16:05:23 +0000"  >&lt;p&gt;I can reproduce this with 2.4.9.&lt;/p&gt;

&lt;p&gt;To fix, check for the lock file first on start (in the init script). If the lock file is present then error out to the user saying that it is already running. If the server is &lt;b&gt;not&lt;/b&gt; running, but there is a lock file, they will have to manually remove the file before restarting.&lt;/p&gt;

&lt;p&gt;When you start the server (again) mongod stomps on the pid file which causes the problem shutting down the server.&lt;/p&gt;

&lt;p&gt;If you are stuck with this, and do not want to restart your server, add the pid of the mongod process to whatever you configured the pid file to be (pidfilepath).&lt;/p&gt;

&lt;p&gt;Another potential problem is that the script uses killproc. If you are running multiple mongod processes on the same box, this could kill the wrong process. As a hack, I did something like the following in chef to avoid collision (and changed the mongod-test init script to use the binary of /usr/bin/dbtest/mongod):&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;remote_file &quot;/usr/bin/dbtest/mongod&quot; do&lt;br/&gt;
    owner &apos;root&apos;&lt;br/&gt;
    group &apos;root&apos;&lt;br/&gt;
    mode 0755&lt;br/&gt;
    source &quot;file:///usr/bin/mongod&quot;&lt;br/&gt;
    action :create&lt;br/&gt;
end&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;&lt;a href=&quot;http://www.met.reading.ac.uk/it/cgi-bin/man.cgi?section=8&amp;amp;topic=killproc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.met.reading.ac.uk/it/cgi-bin/man.cgi?section=8&amp;amp;topic=killproc&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="294022">SERVER-24583</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="322814">SERVER-26575</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12451" key="com.atlassian.jira.plugin.system.customfieldtypes:multiversion">
                        <customfieldname>Backport Completed</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="16908">3.0.13</customfieldvalue>
    <customfieldvalue id="17212">3.2.10</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 11 Feb 2014 16:05:23 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 24 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 24 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10249"><![CDATA[Cannot]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10020"><![CDATA[Linux]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>brian.samek@mongodb.com</customfieldvalue>
            <customfieldvalue>ernie.hershey@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>jonathanv</customfieldvalue>
            <customfieldvalue>rn@deftlabs.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrm5ov:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrcl1r:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>104312</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1061">Build 17 (07/15/16)</customfieldvalue>
    <customfieldvalue id="1062">Build 18 (08/05/16)</customfieldvalue>
    <customfieldvalue id="1187">Build 2016-08-26</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;ol&gt;
	&lt;li&gt;install mongodb-org-unstable-server package&lt;/li&gt;
	&lt;li&gt;run &quot;sudo service mongod start&quot;&lt;/li&gt;
	&lt;li&gt;run &quot;sudo service mongod start&quot;&lt;/li&gt;
	&lt;li&gt;run &quot;sudo service mongod stop&quot;&lt;/li&gt;
&lt;/ol&gt;
</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10166" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Tests Written</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10340"><![CDATA[Pending Test Framework Changes]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hsp2dr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>