Launchctl problems
Having a little problem setting up launchctl to load my nginx.plist.
I've got a file called:
/System/Library/LaunchDaemons/nginx.plist
with the contents:
<?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>nginx</string>
<key>Program</key><string>/usr/local/nginx/sbin/nginx</string>
<key>KeepAlive</key><true/>
<key>NetworkState</key><true/>
<key>StandardErrorPath</key><string>/var/log/system.log</string>
<key>LaunchOnlyOnce</key><true/>
</dict>
</plist>
And I issue the command in terminal:
launchctl load -F /System/Library/LaunchDaemons/nginx.plist
Doesn't show any output. So I then call:
launchctl list | grep nginx
which gives me nothing. I was wondering if anyone can see what I'm doing wrong?
- James.
Mac OS X (10.6.2)