1 2 3 4 5 6 7 8 9 10
#!/bin/sh INTERFACE="${1}" STATUS="${2}" if [ "${STATUS}" == "up" ]; then if pgrep -x openvpn >/dev/null; then kill -USR1 $(pgrep -x openvpn) fi fi