########################################################################### ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## ########################################################################### # The file assumes the following configuration: # * the openvpn launchd file is located at: /Library/LaunchDaemons/homebrew.mxcl.openvpn.plist # * tap0 is the TAP interface. # * 1.1.1.1 is the point-to-point VPN gateway. check process openvpn with pidfile /usr/local/var/run/openvpn/tap0.pid start program = “/bin/launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.openvpn.plist" stop program = "/bin/launchctl unload /Library/LaunchDaemons/homebrew.mxcl.openvpn.plist" check host tap0 with address 1.1.1.1 start program = "/bin/launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.openvpn.plist" stop program = "/bin/launchctl unload /Library/LaunchDaemons/homebrew.mxcl.openvpn.plist" if failed icmp type echo count 5 with timeout 15 seconds then restart