Skip to content

Instantly share code, notes, and snippets.

@e28eta
Last active January 19, 2017 05:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save e28eta/19e2d9e0c55a2d6c37252a65b1325065 to your computer and use it in GitHub Desktop.
Save e28eta/19e2d9e0c55a2d6c37252a65b1325065 to your computer and use it in GitHub Desktop.
Launchd.plist for running nfarina/homebridge from /etc/homebridge while the computer is running. Probably adapted from somewhere, but I don't remember where.
<?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> <key>Label</key> <string>com.github.nfarina.homebridge</string> <key>EnvironmentVariables</key> <dict> <key>PATH</key> <string>/usr/local/bin/:/usr/bin:$PATH</string> </dict> <key>ProgramArguments</key> <array> <string>/usr/local/bin/homebridge</string> <string>-U</string> <string>/etc/homebridge/</string> </array> <key>KeepAlive</key> <true /> <!-- <key>RunAtLoad</key> <true/> <key>KeepAlive</key> <dict> <key>SuccessfulExit</key> <false/> </dict> --> <key>StandardErrorPath</key> <string>/Library/Logs/homebridge.log</string> <key>StandardOutPath</key> <string>/Library/Logs/homebridge.log</string> </dict> </plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment