心跳服务在重新启动后没有启动,因为它已经达到了它定义的最大限度。从/var/log/messages
和system heartbeat status
中,我找到了下面的输出。如何启动服务,如果它已经达到最大的尝试而不重启服务器,因为我不能重启服务器,因为它是PROD框。
May 30 05:18:11 servername.domain.com heartbeat: Exiting: error loading config file: yaml: line 19: did not find expected key
May 30 05:18:11 servername.domain.com systemd: heartbeat.service: main process exited, code=exited, status=1/FAILURE
May 30 05:18:11 servername.domain.com systemd: Unit heartbeat.service entered failed state.
May 30 05:18:11 servername.domain.com systemd: heartbeat.service failed.
May 30 05:18:11 servername.domain.com systemd: heartbeat.service holdoff time over, scheduling restart.
May 30 05:18:11 servername.domain.com systemd: start request repeated too quickly for heartbeat.service
May 30 05:18:11 servername.domain.com systemd: Failed to start heartbeat.
May 30 05:18:11 servername.domain.com systemd: Unit heartbeat.service entered failed state.
May 30 05:18:11 servername.domain.com systemd: heartbeat.service failed.
May 30 05:20:01 servername.domain.com systemd: Started Session 194726 of user root.
May 30 05:20:01 servername.domain.com systemd: Starting Session 194726 of user root.
请建议一种启动和运行服务的方法。
最佳答案
为了实现这一点,您可以使用:systemctl reset-failed
。