1

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

-------------------------------------------------------------------

p

How to fix this error?
Thx before

alexander.polomodov
  • 1,060
  • 3
  • 10
  • 14
mrhmt
  • 13
  • 1
  • 5

1 Answers1

1

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.

user373333
  • 630
  • 1
  • 4
  • 12