Revision 938b8ebf
Added by Seth Mos over 16 years ago
etc/inc/vslb.inc | ||
---|---|---|
131 | 131 |
* there is a chance the monitor ip gateway will go out the link |
132 | 132 |
* that is up. |
133 | 133 |
*/ |
134 |
mwexec("/sbin/route delete -host {$lbsvr_split[1]} 1>/dev/null 2>&1");
|
|
135 |
mwexec("/sbin/route add -host {$lbsvr_split[1]} 127.0.0.1 1> /dev/null 2>&1");
|
|
134 |
mwexec("/sbin/route delete -host {$lbsvr_split[1]} 2>&1"); |
|
135 |
mwexec("/sbin/route add -host {$lbsvr_split[1]} 127.0.0.1 2>&1"); |
|
136 | 136 |
} else { |
137 |
mwexec("/sbin/route delete -host {$lbsvr_split[1]} 1>/dev/null 2>&1");
|
|
138 |
mwexec("/sbin/route add -host {$lbsvr_split[1]} {$gateway} 1> /dev/null 2>&1");
|
|
137 |
mwexec("/sbin/route delete -host {$lbsvr_split[1]} 2>&1"); |
|
138 |
mwexec("/sbin/route add -host {$lbsvr_split[1]} {$gateway} 2>&1"); |
|
139 | 139 |
} |
140 | 140 |
} |
141 | 141 |
$slbdconf .= "\t:service-port=666:\\\n"; |
Also available in: Unified diff
Send output into mwexec function