Exited too quickly (process log may have details)-配置问题

在配置supervisor的时候,提示Exited too quickly (process log may have details),这个时候一脸懵逼,啥回事,执行太快了???

然后仔细看了program块的配置,发现由于自己是在测试,运行的命令是sleep 1,而startsecs设置为3,supervisor认为程序执行太快导致出错,把命令改成sleep 4就可以了

[program:demo]
command=sleep 1
directory=/
autostart=true
startsecs=3
autorestart=true
startretries=3
; user=root
priority=999
redirect_stderr=true
stdout_logfile_maxbytes=20MB
stdout_logfile_backups = 20
stdout_logfile=/tmp/supervisord/demo.log
stopasgroup=false
killasgroup=false

posted on 2019-05-08 18:45  果然朝辉  阅读(20759)  评论(0编辑  收藏  举报

导航