rambo posted to #ajatus:

rambo

getting couchdb working via launchctl properly

3 months, 4 weeks ago.

2 comments so far

  • rambo
    1. Create user couchdb (either as standard user account or if you happen to have the OSX server tools installed you can use that to make proper daemon account)
    2. open shell, sudo su -
    3. mkdir -p /opt/local/var/log/couchdb && chown -R couchdb /opt/local/var/log/couchdb
    4. mkdir -p /opt/local/var/lib/couchdb && chown -R couchdb /opt/local/var/lib/couchdb
    5. cp /opt/local/Library/LaunchDaemons/org.couchdb.couchdb.plist /Library/LaunchDaemons/ && launchctl load -w /Library/LaunchDaemons/org.couchdb.couchdb.plist
    6. launchctl start org.couchdb.couchdb
    7. exit sudo and shell, check the Console application

    3 months, 4 weeks ago by rambo.

  • rambo

    If you have (like me) been running the couchdb in screen or otherwise manually starting it to background via sudo (ie as root) do the following:

    1. shutdown the running instance
    2. create the user
    3. chown -R couchdb /opt/local/var/log/couchdb && chown -R couchdb /opt/local/var/lib/couchdb
    4. continue from step 5.
    5. Profit !!!

    3 months, 4 weeks ago by rambo.

Sign in to add a comment