Skip to content

Latest commit

 

History

History
48 lines (29 loc) · 2.25 KB

install-launch-agents.md

File metadata and controls

48 lines (29 loc) · 2.25 KB

Logo

↤ Getting Started

Install Launch Agents

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

Security Overview

Your IT Department might want to know a few things about what this tool is doing.

Overview

NOTE: This tool does not require a superuser or root-level access to install.

Our ./install script does the following:

  1. Uses Homebrew to install sleepwatcher to add event listeners for Awake & Sleep states
  2. Adds sdx-start bash script to start a Sandbox after the computer boots or wakes up
  3. Adds sdx-stop bash script to stop a Sandbox when the computer shuts down or goes to sleep
  4. Adds boot-shutdown bash script to call above scripts on shutdown and boot
  5. Adds com.opensfcc.sleepwatcher.plist Launch Agent for Sleepwatcher events
  6. Adds com.opensfcc.sandbox.plist Launch Agent for Boot and Shutdown events

Installation Prompts

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.

background-items

Clicking this notice will open the Login Items, where you will see our boot-shutdown script listed.

login-items


Previous Step   Next Step