Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22641 - Add rc-script for Keepalived
Summary: Add rc-script for Keepalived
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor
Assignee: Brian Jackson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-11 14:58 UTC by Ian Neubert
Modified: 2003-07-01 11:04 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
rc-script to start keepalived (keepalived,644 bytes, text/plain)
2003-06-11 15:00 UTC, Ian Neubert
Details
rc-script to start keepalived w/checks and enables for ip_forward (keepalived,931 bytes, text/plain)
2003-06-11 17:12 UTC, Ian Neubert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Neubert 2003-06-11 14:58:49 UTC
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
Comment 1 Ian Neubert 2003-06-11 15:00:07 UTC
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 :)
Comment 2 Ian Neubert 2003-06-11 17:12:43 UTC
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.
Comment 3 Brett Simpson 2003-06-11 19:11:55 UTC
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 
Comment 4 Ian Neubert 2003-06-12 10:21:26 UTC
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!
Comment 5 Brian Jackson (RETIRED) gentoo-dev 2003-06-30 21:52:04 UTC
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. 
Comment 6 Brett Simpson 2003-07-01 07:04:04 UTC
I tested it and it works fine with Keepalived. Be sure to grab the first one listed 
(13127) and not 13129. Brett 
Comment 7 Brian Jackson (RETIRED) gentoo-dev 2003-07-01 11:04:06 UTC
done for keepalived-1.0.0 and keepalived-1.0.3