我已经编译并配置keepalived
好了,raspberry
但它仍然无法启动。
当我尝试systemctl
启用时keepalived
出现错误
-------------------------------------------------------
root@haproxy:/etc/systemd/system# /etc/init.d/keepalived status
● keepalived.service - Keepalive Daemon (LVS and VRRP)
Loaded: loaded (/lib/systemd/system/keepalived.service; enabled; vendor preset: enabled)
Active: inactive (dead)
Condition: start condition failed at Sun 2018-07-08 10:28:01 UTC; 28s ago
└─ ConditionFileNotEmpty=/etc/keepalived/keepalived.conf was not met
-------------------------------------------------------------------
如何修复此错误?
谢谢
答案1
标题和问题不匹配,因为 keepalived 已经启用但无法启动。
Loaded: loaded (/lib/systemd/system/keepalived.service; **enabled**; vendor preset: enabled)
根据附件信息,配置文件 (/etc/keepalived/keepalived.conf) 为空,由于指定条件 (CondtionFileNotEmpty) 导致 keepalived 无法启动。将配置添加到文件并启动 keepalived。