Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#25021 - [mongodb] add /bin/bash to mongodb.rc

Attached to Project: Community Packages
Opened by Mathias Rohnstock (drmonty) - Tuesday, 05 July 2011, 08:14 GMT
Last edited by Thomas Dziedzic (tomd123) - Thursday, 07 July 2011, 15:34 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Thomas Dziedzic (tomd123)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
change line 11 in mongodb.rc from:

[ -z "$PID" ] && /bin/su mongodb -s -c "/usr/bin/mongod --config /etc/mongodb.conf --fork" > /dev/null

to:

[ -z "$PID" ] && /bin/su mongodb -s /bin/bash -c "/usr/bin/mongod --config /etc/mongodb.conf --fork" > /dev/null

otherwise daemon won't start (not on my system).
This task depends upon

Closed by  Thomas Dziedzic (tomd123)
Thursday, 07 July 2011, 15:34 GMT
Reason for closing:  Works for me
Comment by Mathias Rohnstock (drmonty) - Tuesday, 05 July 2011, 08:15 GMT
Sorry, original line was:
[ -z "$PID" ] && /bin/su mongodb -s "/usr/bin/mongod --config /etc/mongodb.conf --fork" > /dev/null
not
[ -z "$PID" ] && /bin/su mongodb -s -c "/usr/bin/mongod --config /etc/mongodb.conf --fork" > /dev/null
Comment by Thomas Dziedzic (tomd123) - Tuesday, 05 July 2011, 13:48 GMT
please see https://bugs.archlinux.org/task/25010
there have been recent changes in the mongodb initscripts that require attention
Comment by Mathias Rohnstock (drmonty) - Tuesday, 05 July 2011, 14:26 GMT
"usermod -s /bin/bash mongodb" fixed the issue, like Thomas announced.
Would be great, if some infotext would get displayed on updating the package.

Loading...