Commit a40b0c51 authored by Michael Mason's avatar Michael Mason

unstable/ucarp Updated confd initd

parent 4ec779ee
......@@ -29,5 +29,5 @@ build() {
}
md5sums="ba585233e73f0dbce80427d04f431048 ucarp-1.5.tar.gz
fae5ca64ed20a9346b00e9c9411a43c8 ucarp.initd
ffdbc07da100b4882cc5da9121c0c842 ucarp.confd"
e8f1e2fd144797524025343603dbe2b8 ucarp.initd
bf914f6ce4fe4fea33a45d4d5b2c1fff ucarp.confd"
......@@ -3,8 +3,11 @@
# VHID - Virtual Server ID
# VIP - The Virtual IP
# PASSWORD - The password for the carp announcements
# EXTRA_ARGS - extra arguments
REALIP=
VHID=2
VIP=127.0.0.1
PASSWORD=SecretPassword
#EXTRA_ARGS="--neutral --advbase=3"
......@@ -11,7 +11,7 @@ IFACE="${SVCNAME#*.}"
if [ -n "$IFACE" ] && [ "${SVCNAME}" != "ucarp" ]; then
UP="/etc/ucarp/vip-up-$IFACE.sh"
DOWN="/etc/ucarp/vip-down-$IFACE.sh"
. /etc/ucarp/$IFACE.conf
. /etc/conf.d/ucarp.$IFACE
else
UP="/etc/ucarp/vip-up.sh"
DOWN="/etc/ucarp/vip-down.sh"
......@@ -35,7 +35,7 @@ start () {
start-stop-daemon --start --exec $DAEMON \
--background -m -p /var/run/ucarp-$IFACE.pid -- \
-i $IFACE -s $REALIP -v $VHID -p $PASSWORD -a $VIP \
-u $UP -d $DOWN -z
-u $UP -d $DOWN $EXTRA_ARGS -z
eend $?
}
......@@ -60,3 +60,4 @@ stop () {
[ $? -eq 0 ] && rm /var/run/ucarp-$IFACE.pid
eend $?
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment