Closed seeholza closed 9 years ago
That looks like a straightforward matter of timing. Your foreman log clearly says:
16:38:38 system | sending SIGTERM to all processes
but it apparently doesn't get there before nginx daemonises.
Honcho isn't designed for running processes that fork. If you want to do that, then you can just write a two line shell script:
nginx -c `pwd`/conf/nginx/nginx.conf
uwsgi --ini conf/uwsgi/uwsgi.ini
I am trying to
start
this procfile:and get the following behavior, where uwsgi exits with 0, then nginx is terminated by honcho.
If I comment out one of the two lines, each works fine. Also, foreman runs this without problems:
Both lines just start nginx and uwsgi daemons, which continue running for foreman, but not for honcho. Could this be due to the fact that both processes after starting daemons exit as soon as they are done?