Here's what I did with the upstart script.  It works.  Mongo starts now
with `sudo start mongodb`:

# Ubuntu upstart file at /etc/init/mongodb.conf

pre-start script
    mkdir -p /var/lib/mongodb/
    mkdir -p /var/log/mongodb/
end script

start on runlevel [2345]
stop on runlevel [06]

script
  ENABLE_MONGODB="yes"
  if [ -f /etc/default/mongodb ]; then . /etc/default/mongodb; fi
  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/xulrunner-`xulrunner-1.9.2 
--gre-version`
  bname=`basename $0`
  if [ "$bname" = "xulwrapper" ] ; then
      echo xulwrapper must not be used to wrap itself. Paradox avoided.
      exit 1
  fi
  if [ "x$ENABLE_MONGODB" = "xyes" ]; then
    exec start-stop-daemon --start --quiet --chuid mongodb --exec  
/usr/bin/mongod -- --config /etc/mongodb.conf;
  fi
end script

-- 
mongo / mongod as packaged can't load libmozjs.so
https://bugs.launchpad.net/bugs/557024
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to