[uWSGI] Init script for Debian?

Gilles codecomplete at free.fr
Wed Apr 23 16:25:45 CEST 2014


Before asking, I checked the archives with either "debian upstrat" or
"debian init" but didn't find much:

What is the right way to write an Upstart script to start/stop uwsgi
on a Debian host, where the settings should be in an INI file instead?

Thank you.

Here's the sample from the online documentation:
# simple uWSGI script to start uwsgi as stand-alone web server

description "uwsgi tiny instance"
start on runlevel [2345]
stop on runlevel [06]

#Where to put myapp.ini?
exec uwsgi myapp.ini

1. Is it indeed possible to outsource settings in an INI file?

2. If yes, where should the INI file be located for Upstart to find

Thank you.

More information about the uWSGI mailing list