WebFaction
Community site: login faq

Hi, I have installed MongoDB: http://docs.webfaction.com/software/mongodb.html, and I start my process using `nohup mongod --auth --dbpath $DB --port $PORT &' from the terminal.

My question is about restarting it when the server is rebooted. Is the recommended way to monitor it, and restart if neccessary via a cronjob, or is there some other best practices kind of way?

Thanks, Marcin

asked 09 Dec '13, 01:45

naartjie
134
accept rate: 0%


Restarting it via a cron job, using "@reboot" as the schedule component of the job, is the recommended way to restart an app immediately following a reboot.

permanent link

answered 09 Dec '13, 14:18

seanf
12.2k41836
accept rate: 37%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×29
×2
×1

question asked: 09 Dec '13, 01:45

question was seen: 1,425 times

last updated: 09 Dec '13, 14:18

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM