私は現在、ステージング(Ubuntu)でForemanを実行していますが、動作するようになると、upstartの使用に切り替わります。
私のProcfile.stagingは次のようになります。
nginx: sudo service nginx start
unicorn: bundle exec unicorn -c ./config/unicorn.rb
redis: bundle exec redis-server
sidekiq: bundle exec sidekiq -v -C ./config/sidekiq.yml
以下を使用してnginxを正常に起動できます:
$ sudo service nginx start
ただし、実行する$ foreman start
と、他の3つのプロセスが正常に開始されますが、nginxは次のことを行いません。
11:15:46 nginx.1 | started with pid 15966
11:15:46 unicorn.1 | started with pid 15968
11:15:46 redis.1 | started with pid 15971
11:15:46 sidekiq.1 | started with pid 15974
11:15:46 nginx.1 | Starting nginx: nginx.
11:15:46 nginx.1 | exited with code 0
11:15:46 system | sending SIGTERM to all processes
SIGTERM received
11:15:46 unicorn.1 | terminated by SIGTERM
11:15:46 redis.1 | terminated by SIGTERM
11:15:46 sidekiq.1 | terminated by SIGTERM
では、Foremanによって開始されたときにnginxが開始されないのはなぜですか?