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#26024 - [mongodb]rc startup script needs to be updated

Attached to Project: Community Packages
Opened by Zbyszek Tokarczyk (zbito) - Thursday, 15 September 2011, 06:27 GMT
Last edited by Thomas Dziedzic (tomd123) - Sunday, 18 September 2011, 22:36 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Thomas Dziedzic (tomd123)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The mongodb does not start with rc.d script provided with package. Additional switch must be added to start procedure.
For some versions of mongodb the --fork startup switch must be used together with --logpath "path_to_log"

Steps to reproduce:
Install fresh mongodb, and try to start daemon.
This task depends upon

Closed by  Thomas Dziedzic (tomd123)
Sunday, 18 September 2011, 22:36 GMT
Reason for closing:  Not a bug
Additional comments about closing:  gotta clean up your pacnew files :)
Comment by Thomas Dziedzic (tomd123) - Thursday, 15 September 2011, 16:40 GMT
It works for me and I can also confirm from another tu that it's working for him on a fresh install. Can you please give me any more useful information? Maybe try starting it manually and see what error you get?
Comment by Zbyszek Tokarczyk (zbito) - Friday, 16 September 2011, 08:25 GMT
I'll check it again. With fresh package. I was using fixed startup script for same problem for some time.
The resolution is in fact from starting the mongodb manually with the same parameters that are used in rc script. But I'll check again with fresh install, if it was not just some old junk script that hopped into rc.d.
Comment by Zbyszek Tokarczyk (zbito) - Sunday, 18 September 2011, 17:24 GMT
Starting mongo manually with command line taken from rc.d script gives following output:

# /bin/su mongodb -c "/usr/bin/mongod --config /etc/mongodb.conf --fork"
--fork has to be used with --logpath
Comment by Zbyszek Tokarczyk (zbito) - Sunday, 18 September 2011, 17:36 GMT
I've found the source of problem afterall. With new package, also new /etc/mongodb.conf file came, but was saved under /etc/mongodb.conf.pacnew name. The new config file does have logpath variable set, so the command-line command does not require it.

The bug report can be closed.

Loading...