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