Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
waitforit launch agent plist for mac

Put this file in ~/Library/LaunchAgents, modify to update the location of gopath, and run.

$ launchctl load com.amitu.waitforit.plist
<?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>KeepAlive</key>
<true/>
<key>Label</key>
<string>com.amitu.waitforit</string>
<key>ProgramArguments</key>
<array>
<string>/Users/amitu/projects/gopath/bin/waitforit</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>UserName</key>
<string>amitu</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.