Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alekc/e52f0cd326683e05c9812f1ecb0860ae to your computer and use it in GitHub Desktop.
Save alekc/e52f0cd326683e05c9812f1ecb0860ae to your computer and use it in GitHub Desktop.
Installation instructions of latest (at the moment of writing) keepalived on Debian.
apt-get install build-essential libssl-dev -y
cd /tmp
wget http://www.keepalived.org/software/keepalived-1.2.20.tar.gz
tar xzvf keepalived*
cd keepalived*
./configure --prefix=
make
make install
#vi /lib/systemd/system/keepalived.service
########################
[Unit]
Description=LVS and VRRP High Availability Monitor
After=syslog.target network.target
Wants=network-online.target
ConditionFileNotEmpty=/etc/keepalived/keepalived.conf
ExecReload=/bin/kill -1 $MAINPID
[Service]
Type=forking
KillMode=process
PIDFile=/var/run/keepalived.pid
ExecStart=/sbin/keepalived $KEEPALIVED_OPTIONS
EnvironmentFile=-/etc/sysconfig/keepalived
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
###############
systemctl enable keepalived.service
systemctl start keepalived.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment