27 lines
		
	
	
		
			980 B
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			980 B
		
	
	
	
		
			Plaintext
		
	
	
	
[program:queue_alipay_notify]
 | 
						||
# 启动目录
 | 
						||
directory=/var/project/
 | 
						||
# 执行的命令
 | 
						||
command=php think queue:work --queue=alipay_notify --tries=3
 | 
						||
#启用的用户
 | 
						||
user=www-data
 | 
						||
#在 supervisord 启动的时候也自动启动
 | 
						||
autorstart=false
 | 
						||
#程序异常退出后自动重启
 | 
						||
autorestart=true
 | 
						||
#启动 5 秒后没有异常退出,就当作已经正常启动了
 | 
						||
startsecs=5
 | 
						||
#启动失败自动重试次数,默认是 3
 | 
						||
startretries=3
 | 
						||
#把 stderr 重定向到 stdout,默认 false
 | 
						||
redirect_stderr=false
 | 
						||
#stdout 日志文件大小,默认 50MB
 | 
						||
stdout_logfile_maxbytes = 20MB
 | 
						||
#stdout 日志文件备份数
 | 
						||
stdout_logfile_backups = 20
 | 
						||
#stdout 日志文件,需要注意当指定目录不存在时无法正常启动,所以需要手动创建目录(supervisord 会自动创建日志文件)
 | 
						||
stdout_logfile=/var/log/supervisor/queue_alipay_notify_out.log
 | 
						||
stderr_logfile=/var/log/supervisor/queue_alipay_notify_err.log
 | 
						||
#环境变量
 | 
						||
#environment=LC_ALL="C.UTF-8",LANG="C.UTF-8"
 |