[SERVER-12346] Start script for mongod has ulimit error in Debian Created: 13/Jan/14  Updated: 11/Jul/16  Resolved: 19/Feb/14

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: 2.5.4
Fix Version/s: 2.6.0-rc0

Type: Bug Priority: Major - P3
Reporter: Jonathan Abrahams Assignee: Ernie Hershey
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Platform - Debian sysvinit (64 bit)


Issue Links:
Gantt Dependency
Backwards Compatibility: Fully Compatible
Operating System: Linux
Participants:

 Description   

Setting up mongodb-org-unstable-server (2.5.4) ...
[....] Starting database: mongod/etc/init.d/mongod: 131: ulimit: Illegal option -u



 Comments   
Comment by Githook User [ 19/Feb/14 ]

Author:

{u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'}

Message: SERVER-12346 Detect dash for ulimit parameter in .deb init script
Branch: master
https://github.com/mongodb/mongo/commit/637ca318fd8df656931591214fccaf219616fd91

Comment by Ernie Hershey [ 19/Feb/14 ]

Here's some more info:
https://wiki.ubuntu.com/DashAsBinSh

Comment by Ernie Hershey [ 19/Feb/14 ]

I verified this is because /bin/sh is dash in newer debians instead of bash. Here's a similar issue - https://github.com/edelight/chef-mongodb/issues/146

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