[SERVER-7575] Debian start-up script in 10gen repository makes MongoDB not start if numactl is available on system Created: 07/Nov/12  Updated: 14/Feb/13  Resolved: 14/Feb/13

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: 2.2.1
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Derick Rethans Assignee: Akshay Kumar
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Debian Unstable - fully up to date


Attachments: File mongodb_debian_init_script_fix.diff    
Issue Links:
Duplicate
duplicates SERVER-6008 numactl in debian init script seems t... Closed
Operating System: Linux
Participants:

 Description   

With the deb repository on 10gen comes an `/etc/init.d/mongod` script that throws errors when started and `numactl` is available as a command:

root@whisky:/home/derick# /etc/init.d/mongodb start
 * Starting database mongodb                                                   start-stop-daemon: unrecognized option '--interleave=all'
Try 'start-stop-daemon --help' for more information.
                                                                        [fail]

This comes due to the fact that in line 125, the following code: *--exec $NUMACTL $DEAMON* turns into *--exec /usr/bin/numactl --interleave-all /usr/bin/mongod* and stop-start-deamon does not understand *--interleave-all*.

(Also, shouldn't mongod be in /usr/sbin?)



 Comments   
Comment by Eliot Horowitz (Inactive) [ 03/Dec/12 ]

I think it would be better if numactl was made a dependency.
The reason who added it to the init script was that so people didn't accidentally not have it.
This would make it easy to not use it when needed.

Comment by Val [ 03/Dec/12 ]

This little patch should fix this problem.

Regards.

Generated at Thu Feb 08 03:14:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.