Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I currently have a Redmine installation on a local server for our office to use. The problem is that sometimes, when I run the redmine server using:

ruby script/server webrick -e production

it will sometime kill the process due to some error. The error is not the issue, but what I want is a way to re-run the process, and have it automatically run whenever it is seen not running.

How do i do this?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Run it under process supervisor, which will try (and possibly succeed) to start process again after it has died. I suggest supervisord, but you can also try daemontools ar monit.

share|improve this answer
    
Thanks for your answer! :) –  Nikko Jul 27 '10 at 3:35

Your Answer

 
discard

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.