0

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?

Nikko
  • 245
  • 1
  • 2
  • 5

1 Answers1

0

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.

Kristaps
  • 2,925
  • 16
  • 22