<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:54:36 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-591] Debianb packaging: Bad ordering of variables and reading of /etc/default</title>
                <link>https://jira.mongodb.org/browse/SERVER-591</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The file debian/init.d has some issues:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;The name is set to &quot;MongoDB&quot;.  By convention this should be all lower case&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;DAEMONUSER is set to a hard coded value after /etc/default/$NAME has been read which makes it impossible to override the user&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;DAEMON_OPTS should be composed after /etc/default/$NAME is read (and only if $DAEMON_OPTS is not already set).  That would allow default to set things like the data directory  easily (the single most likely thing someone would want to set)&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;DAEMONUSER is explicitly set and is a failure if not existing.  Later on there are codepaths for it being set or not.  Make your mind up &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Part of that checking sets DAEMONUID/GID but never uses them.  The other tools used such as start_stop_daemon use the textual name and report errors, so leave all this user stuff up to them.&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;For reload_server, the comment says SIGHUP is sent but the code sends USR1.  The comment has no value and should be removed&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;The main switch/case loop has a bunch of commented out code for reload.  Delete it.  Also reload_server() exists, so use it!&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment>Ubuntu</environment>
        <key id="11230">SERVER-591</key>
            <summary>Debianb packaging: Bad ordering of variables and reading of /etc/default</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="richard.kreuter">Richard Kreuter</assignee>
                                    <reporter username="rogerbinns">Roger Binns</reporter>
                        <labels>
                    </labels>
                <created>Mon, 1 Feb 2010 13:50:43 +0000</created>
                <updated>Tue, 12 Jul 2016 00:27:26 +0000</updated>
                            <resolved>Mon, 1 Feb 2010 15:56:48 +0000</resolved>
                                    <version>1.3.1</version>
                                    <fixVersion>1.3.2</fixVersion>
                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="12111" author="auto" created="Wed, 3 Feb 2010 13:13:26 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;kreuter&apos;, &apos;name&apos;: &apos;Richard Kreuter&apos;, &apos;email&apos;: &apos;richard@10gen.com&apos;}
&lt;p&gt;Message: Prune more needless code from the debian init script.  &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-591&quot; title=&quot;Debianb packaging: Bad ordering of variables and reading of /etc/default&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-591&quot;&gt;&lt;del&gt;SERVER-591&lt;/del&gt;&lt;/a&gt;.  MINOR&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/32f3348ed8ec936dec30886e8be4c59591aeefc2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/32f3348ed8ec936dec30886e8be4c59591aeefc2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="12064" author="rogerbinns" created="Mon, 1 Feb 2010 18:47:14 +0000"  >&lt;p&gt;Great improvements.  BTW there is still a check looking for if the DAEMONUSER exists which is bogus.  Firstly there is no need for the check - start-stop-daemon will end up doing it anyway.&lt;/p&gt;

&lt;p&gt;But if you insist on checking then use &apos;getent passwd &quot;$DAEMONUSER&quot;&apos;.  The current code asks getent to enumerate &lt;b&gt;every&lt;/b&gt; entry which given there could be LDAP users, NIS users etc could take a very long time!  Just ask getent directly for the user of interest.&lt;/p&gt;</comment>
                            <comment id="12060" author="auto" created="Mon, 1 Feb 2010 15:46:14 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;kreuter&apos;, &apos;name&apos;: &apos;Richard Kreuter&apos;, &apos;email&apos;: &apos;richard@10gen.com&apos;}
&lt;p&gt;Message: Address issues in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-591&quot; title=&quot;Debianb packaging: Bad ordering of variables and reading of /etc/default&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-591&quot;&gt;&lt;del&gt;SERVER-591&lt;/del&gt;&lt;/a&gt;.  MINOR&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/99dc251ea9f08141ea497d6f595ca3acf214b156&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/99dc251ea9f08141ea497d6f595ca3acf214b156&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="12059" author="richard@10gen.com" created="Mon, 1 Feb 2010 14:59:33 +0000"  >&lt;p&gt;I&apos;m testing a script that addresses all your points except one:&lt;/p&gt;

&lt;p&gt;&amp;gt; - The main switch/case loop has a bunch of commented out code for reload. Delete it. Also reload_server() exists, so use it!&lt;/p&gt;

&lt;p&gt;mongodb doesn&apos;t have support for reloading its configuration in response to a signal, so instead I&apos;m removing both the comment and the reload_server function. (We already supported a &quot;reload&quot; argument to the script, by printing a message telling the user to use &quot;restart&quot; instead.)&lt;/p&gt;

&lt;p&gt;Thanks for the report!&lt;/p&gt;</comment>
                    </comments>
                    <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_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 1 Feb 2010 14:59:33 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        14 years, 3 weeks 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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            14 years, 3 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>richard.kreuter</customfieldvalue>
            <customfieldvalue>rogerbinns</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrps9b:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>22396</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_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|ht0t6v:</customfieldvalue>

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