Excellent idea, works perfectly :)
Although I'd add the '--local-port 0' option to ensure the respawned vpnc doesn't fail due to port already in use problems. I'm using the exec line:
exec /usr/sbin/vpnc --no-detach --pid-file /var/run/vpnc/pid --ifmode tun --non-inter --local-port 0 --dpd-idle 0 <vpn>
Excellent idea, works perfectly :)
Although I'd add the '--local-port 0' option to ensure the respawned vpnc doesn't fail due to port already in use problems. I'm using the exec line:
exec /usr/sbin/vpnc --no-detach --pid-file /var/run/vpnc/pid --ifmode tun --non-inter --local-port 0 --dpd-idle 0 <vpn>