Below is an example of what I'm trying to do:
<?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>fooLabel</string>
<key>Something</key>
<string>/bin/bash foo -arg 1 -arg 2 &</string>
</dict>
</plist>
The plist was added to /Library/LaunchDaemons
so it should run at boot for all users, right? The appropriate file permissions were set.
The script needs to run as a background process and also requires network connectivity. How can I make sure the plist doesnt launch until internet access is established?