I have compiled and configured keepalived on my raspberry but it won't start.

When I try systemctl enable keepalived I got error

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



How to fix this error?
Thx before


There is a mismatch between title and problem as keepalived is already enabled but fails to start.

   Loaded: loaded (/lib/systemd/system/keepalived.service; **enabled**; vendor preset: enabled)

According to attached message, configuration file (/etc/keepalived/keepalived.conf) is empty and preventing keepalived to start due to specified condition (CondtionFileNotEmpty). Add configuration to the file and start keepalived then.

| improve this answer | |
  • thanks sir .. sorry for mismatch on question title .. – faridlabs Jun 20 at 12:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.