Revision 9db8c46d
Added by Jim Pingle almost 12 years ago
etc/rc.carpmaster | ||
---|---|---|
50 | 50 |
} |
51 | 51 |
} |
52 | 52 |
} |
53 |
if (is_array($config['openvpn']) && is_array($config['openvpn']['openvpn-server'])) { |
|
54 |
foreach ($config['openvpn']['openvpn-server'] as $settings) { |
|
55 |
if ($settings['interface'] == $argv[1]) { |
|
56 |
log_error("Starting OpenVPN instance on {$settings['interface']} because of transition to CARP master."); |
|
57 |
openvpn_restart('server', $settings); |
|
58 |
} |
|
59 |
} |
|
60 |
} |
|
53 | 61 |
|
54 | 62 |
?> |
Also available in: Unified diff
When a CARP VIP transitions to master, we need to bump servers also, otherwise a transition from disabled or init may not properly (re)attach to the IP address.