Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed and started a redmine server on a linux machine, following the instructions at and was wondering how I start the server in a way so that it won't stop when I log out of the ssh session.

share|improve this question

There are two possible ways. The easiest way is to install a screen program and to run webrick in your screen session. Screen sessions are persistent, so you will be able to detach from the screen session and disconnect. This way is not optimal because webrick serve requests serially, so the performance is not too high. Second way is to install Apache and Phusion Passenger and to deploy Redmine on Passenger. This requires some amount of work. I can't find a Howto I used for that, but some details can be found here, probably you will need to adapt this Howto to your distro.

share|improve this answer
I did exactly this not to long ago. Even worked, eventually. – David Mackintosh Feb 11 '11 at 3:14
Very cool. Thanks for the answer. Now how do I install redmine on apache on phusion passenger? – lowerkey Feb 11 '11 at 7:00

You should never ever use script/server for production deployments. Use it only for testing and development. There are special application server (like Passenger which are suitable for actual deployments.

There are various HowTos on Google. But generally, Redmine deployments follow the default path documented in Passenger's own documentation.

share|improve this answer

you mean when you run this command?

ruby script/server webrick -e production

You can stick an ampersand '&' on the end of any command so that I'll background the process. i.e

ruby script/server webrick -e production &

for more information on backgrounding tasks, its worthwhile reading something like this.

As the documentation you've pointed to suggests you shouldn't be running with the webrick server for production. You should look at installing redmine with apache.

share|improve this answer
That runs the process in the background, but it will still exit once my connection is closed, right? – lowerkey Feb 11 '11 at 6:58
no it'll keep running & you can bring it back with fg – Nick Kavadias Feb 13 '11 at 11:22

nohup is what you use when you want to prevent it from die when exiting the shell.

I do agree with others that running the scripts like that might not be optimal.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.