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就能夠了ui

[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

相關文章
相關標籤/搜索