caddy.service start request repeated too quickly

限于喜欢 提交于 2019-12-04 03:20:39

In my /etc/systemd/system/caddy.service file, I had the following line:

Restart=on-failure

Commenting that out (with # or ;) and restarting the service showed the underlying problem, which was in my Caddyfile.

EDIT:

service caddy status only prints a few lines from the log, so sometimes you can find the underlying problem by simply looking at the full log. If using syslog, this is done with:

journalctl -u caddy

For anyone else pulling their hair out, note the lines StartLimitInterval and StartLimitBurst in the caddy.service file - if you're testing and repeatedly stop / starting you will hit the StartLimitBurst limit. Need to increase it to lots, or change the StartLimitInterval, to allow this.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!