launchd Startup Script
✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on May 20, 2014
This example demonstrates how to launch a local HTTP server automatically at user login using macOS launchd. It defines a launch agent that runs the `http-server` command on port 8008, with the working directory set to a specific Gists folder. The configuration uses a plist XML file and the `launchctl` command-line utility to load the agent. This shows a system administration workflow rather than a traditional data visualization, highlighting the infrastructure behind serving web-based visualizations locally.
AI-generated descriptionSave this file to ~/Library/LaunchAgents. Then, to load the script (and start it automatically):
launchctl load ~/Library/LaunchAgents/org.ocks.bl.localhost.plist
gpl-3.0 Licensed