Last active
April 14, 2016 11:13
-
-
Save alekc/e52f0cd326683e05c9812f1ecb0860ae to your computer and use it in GitHub Desktop.
Installation instructions of latest (at the moment of writing) keepalived on Debian.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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