Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save evrardjp/47e6f5515ab1d97d6d5c07490690e03f to your computer and use it in GitHub Desktop.
Save evrardjp/47e6f5515ab1d97d6d5c07490690e03f to your computer and use it in GitHub Desktop.
My supervisord config for uWSGI Emperor + Fast Router. Please notice that the priority for the FastRouter must be greater than the one for the Emperor.
[program:uwsgi-emperor]
command=/usr/local/bin/uwsgi --emperor /etc/uwsgi/sites-enabled/ --pidfile /var/run/uwsgi/uwsgi-emperor.pid --auto-procname --emperor-stats-server /var/run/uwsgi/uwsgi-emperor-stats.sock
stdout_logfile=/var/log/uwsgi/%(program_name)s.log
redirect_stderr=true ; redirect proc stderr to stdout (default false)
autostart=true ; start at supervisord start (default: true)
autorestart=unexpected ; whether/when to restart (default: unexpected)
priority=998 ; the relative start priority (default 999)
[program:uwsgi-fastrouter]
command=/usr/local/bin/uwsgi --master --pidfile /var/run/uwsgi/uwsgi-fastrouter.pid --fastrouter :3017 --fastrouter-subscription-server 127.0.0.1:7000 --auto-procname
stdout_logfile=/var/log/uwsgi/%(program_name)s.log
redirect_stderr=true ; redirect proc stderr to stdout (default false)
autostart=true ; start at supervisord start (default: true)
autorestart=unexpected ; whether/when to restart (default: unexpected)
priority=999 ; the relative start priority (default 999)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment