Keepalived comes stock with an rc-script that is not in compliance with Gentoo norms. This script will work in its place and keeps the Gentoo standards in place... Reproducible: Always Steps to Reproduce: 1. ACCEPT_KEYWORDS="~x86" emerge keepalived 2. 3. This script was tested with the keepalived-1.0.3-r1.ebuild from bug #19773
Created attachment 13127 [details] rc-script to start keepalived This script will start keepalived and uses the standard Gentoo format, so you get the nice [ OK ]'s when it works :)
Created attachment 13129 [details] rc-script to start keepalived w/checks and enables for ip_forward Updated script to now check for /proc/sys/net/ipv4/ip_forward and ensure it is active ("1") when starting keepalived and making sure it is deactive ("0") when stopping keepalived.
The script looks good except you would set forwarding in your /etc/sysctl.conf. There are instances where you wouldn't want to run keepalived with forwarding. For example I have two NFS servers that use keepalived for failover of an IP address but they don't do any LVS. Brett
Your right Brett. I changed the bug to show the rc-script without ip_forward checks as the correct fix and the other as obsolete. Thanks!
Can Ian or Brett verify that this works for them? It makes keepalived start for me, but since I don't use keepalived, I can't be sure it is exactly the right thing to do.
I tested it and it works fine with Keepalived. Be sure to grab the first one listed (13127) and not 13129. Brett
done for keepalived-1.0.0 and keepalived-1.0.3