On Sat, 17 Mar 2012 15:56:09 +0100 Tom <[email protected]> wrote: > Thanks Evan and sorry for misspelling your name earlier. > > For those who face similar problems I will share my experiences. I > played around with this today, scanned most of the cookbook, and came > to the conclusion that Ubuntu does not yet provide version 1.4 with > the normal package distributions.
Ubuntu Precise supports it. > As such, I had to use start-stop-daemon. This is my configuration > file: > exec start-stop-daemon --start -c mainuser --exec > /home/mainuser/apps/mongodb/bin/mongod -- --journal --nohttpinterface > --dbpath /home/mainuser/data/db --logpath > /home/mainuser/data/logs/mongodb.log --logappend --port 30000 > > It seems to work. I do not know why I do not need to add expect fork > or expect daemon, but with those it does not work. Without it does > work >From what i read without knowing the daemon, i would guess that mongod without --fork, doesnt fork and stays in foreground, which is the easiest way to handle it in upstart. start-stop-daemon handles the setuid/setgid transparent then. -- upstart-devel mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/upstart-devel
