yum -y install supervisor
vim /etc/supervisord.conf
[include]
files = supervisord.d/*.conf
vim redmine.conf
[program:redmine]
command=rails s
directory=/home/www/redmine
user=root
supervisorctl start redmine
supervisorctl status redmine
supervisorctl stop redmine
原文:http://www.cnblogs.com/jkklearn/p/6666963.html