大网数据广告活动
服务器运维问答

How to bypass systemd "start request repeated too quickly"

· 52CE 我爱测

I'm playing around with CHEF in a CentOS7 VM, and the script failed due to the issue: systemd[1]: start request repeated too quickly for fail2ban.service I know this is configurable in systemd, but I'd just like to know, for test…

问题原文

原帖链接 · qxlab · CC BY-SA 4.0

I'm playing around with CHEF in a CentOS7 VM, and the script failed due to the issue:

systemd[1]: start request repeated too quickly for fail2ban.service

I know this is configurable in systemd, but I'd just like to know, for testing purposes, if there is a way to "reset" systemd so I'm allowed to execute start fail2ban service without receiving this error forever. Right now I have to restart the OS so I'm able to execute it.

Thanks

已采纳解答

原帖链接 · Michael Hampton · CC BY-SA 4.0

If you really have some reason for restarting a service numerous times in a few seconds (or more likely, the service is misconfigured and failing to start) and are running into start limits, you can reset it by using systemctl reset-failed <unit>.

systemctl reset-failed fail2ban.service

Of course, you should fix whatever you did to the service configuration to cause it to fail to start properly.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-09-08)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。