For some reason, I am unable to get my shell script to run when the computer boots. My script fine by itself, but for some reason my Launch Daemon is not starting the job. Please help.
My launch daemon is saved in /Library/LaunchDaemons/local.pingtest.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>Label</key>
<string>local.pingtest</string>
<key>ProgramArguments</key>
<array>
<string>/bin/sh</string>
<string>/pingtest/pingtest.sh</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
/usr/bin/nohup /sbin/ping -i 5 ipaddress | /usr/bin/xargs -L 1 -I '{}' date '+%Y-%m-%d %H:%M:%S: {}' >> /pingtest/Ryan-lou.txt &
/usr/bin/nohup /sbin/ping -i 5 www.google.com | /usr/bin/xargs -L 1 -I '{}' date '+%Y-%m-%d %H:%M:%S: {}' >> /pingtest/Ryan-int.txt &
/usr/bin/nohup /sbin/ping -i 5 ipaddress | /usr/bin/xargs -L 1 -I '{}' date '+%Y-%m-%d %H:%M:%S: {}' >> /pingtest/Ryan-fcc.txt &