I need to create a launchd plist that causes vpnd to launch at startup. vpnd works fine when invoked from the command line, but I can't figure out how to make a plist that does the same thing. Can anyone help? Here's what I've cobbled together so far:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.apple.ppp.l2tp</string>
<key>OnDemand</key>
<false/>
<key>Program</key>
<string>/usr/sbin/vpnd</string>
<key>ProgramArguments</key>
<array>
<string>vpnd</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
Running it with launchctl -w has no effect, triggers no errors, and outputs nothing to the console. Does the XML look right?