diff options
-rw-r--r-- | 40-openvpn | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,9 +1,11 @@ #!/bin/sh - + case "${reason}" in BOUND|REBIND|REBOOT|RENEW|TIMEOUT|STATIC) # send openvpn processes SIGUSR1 and make them reconnect - killall -USR1 openvpn + if pgrep -x openvpn >/dev/null; then + kill -USR1 $(pgrep -x openvpn) + fi ;; PREINIT|EXPIRE|INFORM|FAIL|IPV4LL|NAK|NOCARRIER|RELEASE|STOP) # do nothing here... |