All we have left to do now is install the Launch Agents to handle starting & stopping your sandbox.
Make sure you are in the root of this project, and run the installer:
./install
Your IT Department might want to know a few things about what this tool is doing.
NOTE: This tool does not require a superuser or root-level access to install.
Our ./install script does the following:
- Uses Homebrew to install sleepwatcher to add event listeners for Awake & Sleep states
- Adds sdx-start bash script to start a Sandbox after the computer boots or wakes up
- Adds sdx-stop bash script to stop a Sandbox when the computer shuts down or goes to sleep
- Adds boot-shutdown bash script to call above scripts on shutdown and boot
- Adds com.opensfcc.sleepwatcher.plist Launch Agent for Sleepwatcher events
- Adds com.opensfcc.sandbox.plist Launch Agent for Boot and Shutdown events
After running the installer, you will see a notice for a new Background Items Added
entry for boot-shutdown. This was registered by the com.opensfcc.sandbox.plist Launch Agent when we requested to be notified as the computer started or was about to shut down.
Clicking this notice will open the Login Items, where our boot-shutdown script is listed.
Clicking this notice will open the Login Items, where you will see our boot-shutdown script listed.