configuration-templates

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 40  →  ?path2? @ 41
/monit/macOS/templates/openvpn
@@ -3,16 +3,17 @@
###########################################################################
 
# 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 = "launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.openvpn.plist"
stop program = "launchctl unload /Library/LaunchDaemons/homebrew.mxcl.openvpn.plist"
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 = "launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.openvpn.plist"
stop program = "launchctl unload /Library/LaunchDaemons/homebrew.mxcl.openvpn.plist"
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