If you are having trouble with Logmein Hamachi starting up correctly, the following script will check to see if the connection is up. If it is, it will attempt to restart and then send you an email when it’s done.
You’ll need to update these variables with your own data:
email_address=’XXXXXXX@gmail.com’
hamachi_network=”xxx-xxx-xxx”
Also update the machine names and IP address (e.g. test_ip_address) in the case statement.
You can use the command hamachi list (from a Terminal window) to get your network ID and IP addresses.
Once you set this up, you can run this from any of your connected machines and it will try to connect to the other machine. If it cannot, it attempts to get Hamachi working again.
Here’s the script:
…
Source: Mac OSX Hints