Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 need to reload some files for ruby on my server, how do i restart ruby as it isnt a daemon?

share|improve this question
up vote 3 down vote accepted

If something isn't running continually, then when it next starts it will read the new files. My crystal ball suggests you're actually referring to a Passenger instance; that is a daemon, but it's one that is "slaved" to Apache. If you restart Apache, that should do the trick, however Rails (and Passenger) is supposed to have some sort of auto-reloading shenanigan going on, but I guess that isn't working (or you're missing something).

share|improve this answer
I had to edit one of the ruby "source" files, essentially i need to kill all instances of ruby so that one the files can be reloaded in RAM, i might just reboot the server probabbly the fastest solution – Arcath Jan 3 '10 at 10:37
*facepalm*... – womble Jan 3 '10 at 10:40

Restart Rails application under Passenger:

touch /path/to/your/app/tmp/restart.txt

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.