From 527c3fe841f4b302c042412c4cd1714fb4815d98 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 27 May 2013 09:46:38 +0200 Subject: Initial import --- 40-openvpn | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 40-openvpn (limited to '40-openvpn') 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 -- cgit v1.2.3-70-g09d2