Package: ipvsadm
Version: 1:1.25.clean-1

ipvsadm init script does not honor the syncid option when starting 
master/backup daemon. I thought about the following patches:

--- /root/ipvsadm       2011-11-17 17:23:08.000000000 +0100
+++ /etc/init.d/ipvsadm 2011-11-17 17:27:43.000000000 +0100
@@ -23,19 +23,20 @@
 DAEMON="none"          # none|master|backup|both
 IFACE="eth0"
 FAILURE=0
+SYNCID="1"
 
 start () {
     case $DAEMON in
        master|backup)
            log_daemon_msg "Starting IPVS Connection Synchronization Daemon" 
"$DAEMON"
-           $IPVSADM --start-daemon $DAEMON --mcast-interface $IFACE || 
log_end_msg 1
+           $IPVSADM --start-daemon $DAEMON --mcast-interface $IFACE --syncid 
$SYNCID || log_end_msg 1
            log_end_msg 0
            ;;
        both)
            log_daemon_msg "Starting IPVS Connection Synchronization Daemon" 
"master"
-           $IPVSADM --start-daemon master --mcast-interface $IFACE || FAILURE=1
+           $IPVSADM --start-daemon master --mcast-interface $IFACE --syncid 
$SYNCID || FAILURE=1
            log_progress_msg "backup"
-           $IPVSADM --start-daemon backup --mcast-interface $IFACE || FAILURE=1
+           $IPVSADM --start-daemon backup --mcast-interface $IFACE --syncid 
$SYNCID || FAILURE=1
            if [ "$FAILURE" -eq 1 ]
            then
                log_end_msg 1


and add the following line to /etc/default/ipvsadm

SYNCID="1"

Greetings,

-- 
Dr. Michael Schwartzkopff
Guardinistr. 63
81375 München

Tel: (0163) 172 50 98
Fax: (089) 620 304 13

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to