/etc/init.d/ucarp —
Master #!/bin/sh PATH=/sbin:/bin:/usr/sbin:/usr/bin://usr/local/sbin:/usr/local/bin #set to -P if you want this to be the preferred master PREEMPT=-P #Log to /var/log/messages LOG=syslog FAILOVER_ID=10 SHARED_SECRET=passwordsupersecret VIRTUAL_IP=192.168.2.241 REAL_IP=192.168.2.240 INTERFACE=eth1 VIP_UP_SCRIPT=/etc/ucarp/ucarp-up.sh VIP_DOWN_SCRIPT=/etc/ucarp/ucarp-down.sh UCARP_PIDFILE=/var/run/ucarp.pid OPTIONS=”-B -v $FAILOVER_ID -p $SHARED_SECRET -a $VIRTUAL_IP -s $REAL_IP -i $INTERFACE \ -u $VIP_UP_SCRIPT -d $VIP_DOWN_SCRIPT $PREEMPT -k 0 -b 1 -z -f $LOG” test -x /usr/sbin/ucarp […]