LaunchDaemon not recognised I've installed CouchDB via MacPorts. Now I want to start it when my Mac boots, so I executed the instructions given in the install process:

sudo launchctl load -w /Library/LaunchDaemons/org.apache.couchdb.plist


However this doesn't seem to work. I've looked inside the LaunchDaemons directory, and the plist file is there (as a symlink):

lrwxr-xr-x  1 root  wheel   57 18 aug 10:11 org.apache.couchdb.plist -&gt; /opt/local/Library/LaunchDaemons/org.apache.couchdb.plist


The contents of the actual plist file seem ok (however I have no real knowledge of how it should look):

&lt;plist version="1.0"&gt;
  &lt;dict&gt;
    &lt;key&gt;Label&lt;/key&gt;
    &lt;string&gt;org.apache.couchdb&lt;/string&gt;
    &lt;key&gt;EnvironmentVariables&lt;/key&gt;
    &lt;dict&gt;
      &lt;key&gt;HOME&lt;/key&gt;
      &lt;string&gt;~&lt;/string&gt;


    &lt;/dict&gt;
    &lt;key&gt;ProgramArguments&lt;/key&gt;
    &lt;array&gt;
      &lt;string&gt;/opt/local/bin/couchdb&lt;/string&gt;
    &lt;/array&gt;
    &lt;key&gt;UserName&lt;/key&gt;
    &lt;string&gt;couchdb&lt;/string&gt;
    &lt;key&gt;StandardOutPath&lt;/key&gt;
    &lt;string&gt;/dev/null&lt;/string&gt;
    &lt;key&gt;StandardErrorPath&lt;/key&gt;
    &lt;string&gt;/dev/null&lt;/string&gt;
    &lt;key&gt;RunAtLoad&lt;/key&gt;
    &lt;true/&gt;
    &lt;key&gt;KeepAlive&lt;/key&gt;
    &lt;true/&gt;
  &lt;/dict&gt;
&lt;/plist&gt;


When I execute /opt/local/bin/couchdb manually, the process is created, so no problems there. It just seems the launch daemon skips this command.

Any thoughts on how to fix this?
Try the following (one-line command) :

sudo chown -R couchdb:couchdb /opt/local/var/lib/couchdb/ /opt/local/var/log/couchdb/ /opt/local/etc/couchdb/ /opt/local/var/run/couchdb


Then reboot.

If it doesn't work, what version of MacPorts and CouchDB do you have ?