aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--40-openvpn11
1 files changed, 11 insertions, 0 deletions
diff --git a/40-openvpn b/40-openvpn
new file mode 100644
index 0000000..4cdc567
--- /dev/null
+++ b/40-openvpn
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+case "${reason}" in
+ BOUND|INFORM|REBIND|REBOOT|RENEW|TIMEOUT|STATIC)
+ # send openvpn processes SIGUSR1 and make them reconnect
+ killall -USR1 openvpn
+ ;;
+ PREINIT|EXPIRE|FAIL|IPV4LL|NAK|NOCARRIER|RELEASE|STOP)
+ # do nothing here...
+ ;;
+esac