How to get uwsgi container to restart with AWS EC2 reboot <p>I have nginx and uwsgi installed on my CentOS EC2 instance.</p> <p>Nginx restarts successfully when I do a reboot of the machine from the AWS control panel.</p> <p>Uwsgi does not. </p> <p>I have to log in and restart it with 'sudo /etc/init.d/uwsgi start' and then everything is fine. And then of course I can log out as it is running as a service.</p> <p>Having to log-in in order to finish the reboot process is clearly suboptimal.</p> <p>But I think I have the config done properly.</p> <p>When I do chkconfig I see:</p> <pre><code>uwsgi 0:off 1:off 2:on 3:on 4:on 5:on 6:off </code></pre> <p>If I look in the file in /etc/init.d/uwsgi the top of the file reads:</p> <pre><code>#!/bin/bash # uwsgi - Use uwsgi to run python and wsgi web apps. # # chkconfig: 2345 85 15 # description: Use uwsgi to run python and wsgi web apps. # processname: uwsgi </code></pre> <p>Thank you for your help.</p>