I've been using foreman for a while now to scale my various ruby processes in a centralized manner, and it is working perfectly for me .
Anyways I would like to have some feature to restart a process or even to give it more control like to kill a process and start it again, in the current implementation when I kill one process the whole process in the main foreman stop . any workaround or solution here ?
Thanks in advance
While foreman start
is very convenient for development, I would not recommend it for production. I recommend using upstart, but there are also other alternatives - foreman also supports exporting to bluepill, inittab and runit (I've never used any of these myself).
I've also used god in the past, and it worked quite well for starting and monitoring processes. I wrote a foreman_god gem to use Procfiles with god, which simplifies the configuration (no need to export any config files).
Alternatively, there is also an export script that exports god config files from your Procfile.
It seems that answer within the fork of John Mosses foreman_restartable , https://github.com/jmoses/foreman
来源:https://stackoverflow.com/questions/8587588/restart-single-process-with-foreman