supervisor 的记录
- 启动supervisor:
# 启动supervisor服务
sudo supervisord -c /etc/supervisor/supervisord.conf
# 重新你加载supervisor配置文件
sudo supervisorctl reload/restart
- 守护的uwsgi:
[program:celery_worker]
# 运行命令
command=/home/leou/virtualenv/venv/bin/celery worker -A celery_worker.celery --loglevel=info
# 运行目录文件
directory=/home/leou/virtualenv/newymw2.0
# 运行命令的用户名
user=leou
autostart=true
autorestart=true
# 日志地址
stdout_logfile=/home/leou/virtualenv/log/newymw2.0_celery_supervisor.log
- 开机启动:
网友评论