Skip to content
Advertisement

How to make uwsgi shut down if application failed to load?

I run my uwsgi in the simplest way possible, as a process managed by upstart, no emperor mode or anything. This is what I get if application fails on startup for some reason:

JavaScript

I have no use for this mode, and would like it to shut down completely, so my upstart job shows as stopped.

How can I do this?

Advertisement

Answer

The option

–need-app

will do the trick

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement