linssen / vagrant-puppet-nginx-uwsgi-flask

A pretty bare set up for running Flask in nginx through uwsgi in Vagrant deployed by Puppet. Got it?
MIT License
25 stars 12 forks source link

Upstart does not like multiline exec stanza for uwsgi (Trusty 32 at least) #5

Closed mlt closed 9 years ago

mlt commented 9 years ago

I tried your setup with trusty32 box as I already had it cached. Upon vagrant up, I got Error: /Stage[main]/Uwsgi/Service[uwsgi]: Could not evaluate: Execution of '/sbin/status uwsgi' returned 1: status: Unknown job: uwsgi Config checker complained about unknown stanza:

vagrant@myapp:/etc/init$ init-checkconf /etc/init/uwsgi.conf
ERROR: File /etc/init/uwsgi.conf: syntax invalid:
init:uwsgi.conf:8: Unknown stanza

I don't know if there is an easy solution other than turning it into a single line or externalizing it in a yet another script. It started just fine once I collapsed everything to a single line.