<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:42:02 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-16720] Init script in Red Hat fails if using YAML inline syntax</title>
                <link>https://jira.mongodb.org/browse/SERVER-16720</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When using YAML inline syntax, for example:&lt;br/&gt;
processManagement.pidFilePath: /var/run/mongod/mongod.pid&lt;br/&gt;
instead of:&lt;br/&gt;
processManagement:&lt;br/&gt;
  pidFilePath: /var/run/mongod/mongod.pid&lt;br/&gt;
the init script is not able to pick up the correct DBPATH and PIDFILEPATH and fails if directory is not present.&lt;/p&gt;
</description>
                <environment>Centos 7</environment>
        <key id="176930">SERVER-16720</key>
            <summary>Init script in Red Hat fails if using YAML inline syntax</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="ernie.hershey@mongodb.com">Ernie Hershey</assignee>
                                    <reporter username="cammellos">andrea maria piana</reporter>
                        <labels>
                            <label>pull-request</label>
                    </labels>
                <created>Mon, 5 Jan 2015 15:04:48 +0000</created>
                <updated>Wed, 15 Apr 2015 01:49:43 +0000</updated>
                            <resolved>Mon, 5 Jan 2015 19:44:05 +0000</resolved>
                                    <version>2.6.6</version>
                                    <fixVersion>2.8.0-rc5</fixVersion>
                                    <component>Packaging</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="833712" author="ernie.hershey@10gen.com" created="Fri, 20 Feb 2015 16:39:28 +0000"  >&lt;p&gt;Good catch - I created &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-17337&quot; title=&quot;RPM Init script breaks with quotes in yaml config file&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-17337&quot;&gt;&lt;del&gt;SERVER-17337&lt;/del&gt;&lt;/a&gt; to track that problem. &lt;/p&gt;</comment>
                            <comment id="833681" author="kpankonen" created="Fri, 20 Feb 2015 16:24:11 +0000"  >&lt;p&gt;The init script is still broken if you&apos;re quoting the paths (which is shown in the configuration documentation &lt;a href=&quot;http://docs.mongodb.org/manual/reference/configuration-options/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/reference/configuration-options/&lt;/a&gt;)&lt;/p&gt;


&lt;p&gt;Here&apos;s the config&lt;br/&gt;
processManagement:&lt;br/&gt;
    pidfilepath: &quot;/var/run/mongodb/mongod.pid&quot;&lt;/p&gt;

&lt;p&gt;Here&apos;s the useful part of script:&lt;br/&gt;
++ tr -d &apos;&lt;span class=&quot;error&quot;&gt;&amp;#91;:blank:&amp;#93;&lt;/span&gt;&apos;&lt;br/&gt;
++ awk &apos;-F&lt;span class=&quot;error&quot;&gt;&amp;#91;:=&amp;#93;&lt;/span&gt;&apos; -v IGNORECASE=1 &apos;/^[&lt;span class=&quot;error&quot;&gt;&amp;#91;:blank:&amp;#93;&lt;/span&gt;]&lt;b&gt;(processManagement\.)?pidfilepath[&lt;span class=&quot;error&quot;&gt;&amp;#91;:blank:&amp;#93;&lt;/span&gt;]&lt;/b&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;:=&amp;#93;&lt;/span&gt;[&lt;span class=&quot;error&quot;&gt;&amp;#91;:blank:&amp;#93;&lt;/span&gt;]*/&lt;/p&gt;
{print $2}
&lt;p&gt;&apos; /etc/mongod.conf&lt;br/&gt;
+ PIDFILEPATH=&apos;&quot;/var/run/mongodb/mongod.pid&quot;&apos;&lt;br/&gt;
+ mongod=/usr/bin/mongod&lt;br/&gt;
+ MONGO_USER=mongod&lt;br/&gt;
+ MONGO_GROUP=mongod&lt;br/&gt;
+ &apos;&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39; -f /etc/sysconfig/mongod &amp;#39;&amp;#93;&lt;/span&gt;&apos;&lt;br/&gt;
+ . /etc/sysconfig/mongod&lt;br/&gt;
++ dirname &apos;&quot;/var/run/mongodb/mongod.pid&quot;&apos;&lt;br/&gt;
+ PIDDIR=&apos;&quot;/var/run/mongodb&apos;&lt;/p&gt;


&lt;p&gt;PIDFILEPATH gets set to &quot;/var/run/mongod.pid&quot; (includes the quotes), dirname includes the first &quot;&lt;/p&gt;
</comment>
                            <comment id="797412" author="xgen-internal-githook" created="Mon, 5 Jan 2015 19:43:06 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;cammellos&apos;, u&apos;name&apos;: u&apos;Andrea Maria Piana&apos;, u&apos;email&apos;: u&apos;a.piana@77agency.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-16720&quot; title=&quot;Init script in Red Hat fails if using YAML inline syntax&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-16720&quot;&gt;&lt;del&gt;SERVER-16720&lt;/del&gt;&lt;/a&gt; updated awk regexp to support inline pidFilePath and dbPath syntax&lt;/p&gt;

&lt;p&gt;Closes #899&lt;/p&gt;

&lt;p&gt;Signed-off-by: Benety Goh &amp;lt;benety@mongodb.com&amp;gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e82c06607baf14a00751af681b808c3172bdeff0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e82c06607baf14a00751af681b808c3172bdeff0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="796962" author="cammellos" created="Mon, 5 Jan 2015 15:12:25 +0000"  >&lt;p&gt;I have updated the init file to address this scenario and opened a pull request &lt;a href=&quot;https://github.com/mongodb/mongo/pull/899&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/pull/899&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="176944">SERVER-16721</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="177046">SERVER-16731</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="131243">SERVER-13595</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="196104">SERVER-18060</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="185337">SERVER-17337</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>4.0</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>Mon, 5 Jan 2015 19:43:06 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        8 years, 51 weeks, 5 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>ernie.hershey@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            8 years, 51 weeks, 5 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>cammellos</customfieldvalue>
            <customfieldvalue>ernie.hershey@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>kpankonen</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrlfn3:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>155187</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;1) Install Mongodb 2.6 on centos&lt;br/&gt;
2) add the line in /etc/mongod.conf &lt;br/&gt;
  processManagement.pidFilePath: /var/run/mongod/mongod.pid&lt;br/&gt;
3) Make sure /var/run/mongod does not exist ( it&apos;s removed at each shutdown )&lt;br/&gt;
4) /etc/init.d/mongod start should fail with error: &quot;directory /var/run/mongod does not exist&quot;&lt;/p&gt;</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_11861" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>User Summary</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11856"><![CDATA[Not Needed]]></customfieldvalue>

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

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