diff --git a/README.md b/README.md index 0f1c97f..f480f2b 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,11 @@ Host *.dev ForwardAgent yes ``` +## MacOSX supend the running machinse on user logout (shutdown) + +Copy the files `tools/vagrant-suspend` to `/usr/local/bin/vagrant-suspend` and register the logout hook with: +`sudo defaults write com.apple.loginwindow LogoutHook /usr/local/bin/vagrant-suspend` + ## Symfony modification ### Update your app/AppKernel.php diff --git a/tools/vagrant-suspend b/tools/vagrant-suspend new file mode 100755 index 0000000..be86ce8 --- /dev/null +++ b/tools/vagrant-suspend @@ -0,0 +1,23 @@ +#!/usr/bin/env php +