加上这3个选项就可以了
stopsignal=KILL
stopasgroup=true
killasgroup=true
[program:playground_api] command=/home/songkun/.local/bin/uwsgi /mnt/playground-api/uwsgi.ini directory=/mnt/playground-api stdout_logfile=/mnt/playground-api/log/playground_api.log stderr_logfile=/mnt/playground-api/log/playground_api.log autostart=true autorestart=false startsecs=2 stopwaitsecs=2 stopsignal=KILL stopasgroup=true killasgroup=true
uwsgi.ini配置
[uwsgi] socket=127.0.0.1:9511 chdir=/mnt/playground-api wsgi-file=playground_api/wsgi.py processes=2 threads=2 master=True pidfile=uwsgi.pid #daemonize=log/uwsgi.log env=CURRENT_ENV=dev home=/mnt/.virtualenvs/playground-api #py-autoreload=1
需要注意的是supervisor启动uwsgi 必须是前台启动 所以不能有daemonize这个配置项