configuration-templates – Blame information for rev 41

Subversion Repositories:
Rev:
Rev Author Line No. Line
32 office 1 ###########################################################################
2 ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ##
3 ###########################################################################
4  
5 # The file assumes the following configuration:
41 office 6 # * the openvpn launchd file is located at: /Library/LaunchDaemons/homebrew.mxcl.openvpn.plist
32 office 7 # * tap0 is the TAP interface.
8 # * 1.1.1.1 is the point-to-point VPN gateway.
9  
10 check process openvpn with pidfile /usr/local/var/run/openvpn/tap0.pid
41 office 11 start program = “/bin/launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.openvpn.plist"
12 stop program = "/bin/launchctl unload /Library/LaunchDaemons/homebrew.mxcl.openvpn.plist"
32 office 13  
14 check host tap0 with address 1.1.1.1
41 office 15 start program = "/bin/launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.openvpn.plist"
16 stop program = "/bin/launchctl unload /Library/LaunchDaemons/homebrew.mxcl.openvpn.plist"
32 office 17 if failed
18 icmp type echo count 5 with timeout 15 seconds
19 then restart