标签:
运行supervisord -c /etc/supervisord.conf ,这样supervisord服务就跑起来了。配置文件如下:
[program:batchadd]
command=python /data/projects_python/ProductCore/script/batchadd.py
numprocs=5 ;进程数量
process_name=%(program_name)s_%(process_num)02d ;当numprocs>1时,必须设置process_name
autostart=true
stdout_logfile=/data/projects_python/ProductCore/script/batchadd.txt
startretries=10 ;启动失败时重试的次数
stopsignal=KILL
标签:
原文地址:http://www.cnblogs.com/olivetree123/p/4635092.html