Skip to content

Instantly share code, notes, and snippets.

@nathandaven
Created July 29, 2025 20:29
Show Gist options
  • Select an option

  • Save nathandaven/950f48d5703cb67a98894e8c5ea30927 to your computer and use it in GitHub Desktop.

Select an option

Save nathandaven/950f48d5703cb67a98894e8c5ea30927 to your computer and use it in GitHub Desktop.
Sample Launch Agent for MacOS bbctl Beeper Server (sh-meta)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- Place in ~/Library/LaunchAgents -->
<!-- Start with: launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.bbctl.sh-meta.plist -->
<!-- Kill it with: launchctl bootout gui/$(id -u)/com.bbctl.sh-meta -->
<!-- Required unique identifier -->
<key>Label</key>
<string>com.bbctl.sh-meta</string>
<!-- Make sure PATH includes Homebrew & Go -->
<key>EnvironmentVariables</key>
<dict>
<!-- Full PATH so 'go' and Homebrew tools are found -->
<key>PATH</key>
<string>/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
<!-- Disable ANSI colors in logs -->
<key>NO_COLOR</key>
<string>1</string>
</dict>
<!-- The command and its arguments -->
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/bbctl</string>
<string>run</string>
<string>--compile</string>
<string>sh-meta</string>
</array>
<!-- Auto-start at login -->
<key>RunAtLoad</key>
<true/>
<!-- Restart if it exits -->
<key>KeepAlive</key>
<true/>
<!-- Log output -->
<key>StandardOutPath</key>
<string>/tmp/sh-meta.out.log</string>
<key>StandardErrorPath</key>
<string>/tmp/sh-meta.err.log</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment