[Bug 271177] databases/couchdb3: The service start script has an error in the path

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 01 May 2023 17:34:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271177

            Bug ID: 271177
           Summary: databases/couchdb3: The service start script has an
                    error in the path
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: dch@freebsd.org
          Reporter: jjachuf@gmail.com
             Flags: maintainer-feedback?(dch@freebsd.org)
          Assignee: dch@freebsd.org

The /usr/local/etc/rc.d/couchdb3 file has an error in the path in the start
section

This

HOME=/var/run/couchdb \
ERL_CRASH_DUMP=/var/run/couchdb/erl_crash.dump \

must be:

HOME=/var/run/couchdb3 \
ERL_CRASH_DUMP=/var/run/couchdb3/erl_crash.dump \


The complete start section is:

couchdb3_start()
{
    # chdir manually as overriding _start() blocks rc.subr defaults
    cd "${couchdb3_chdir}"
    /usr/sbin/daemon -p ${pidfile} \
        -P ${daemonpidfile} \
        -t ${name} \
        -u ${couchdb3_user} \
        env ERL_FLAGS="${erl_flags}" \
        HOME=/var/run/couchdb3 \
        ERL_CRASH_DUMP=/var/run/couchdb3/erl_crash.dump \
        COUCHDB_FAUXTON_DOCROOT=/usr/local/www/couchdb3 \
       
COUCHDB_QUERY_SERVER_JAVASCRIPT="/usr/local/libexec/couchdb3/bin/couchjs
/usr/local/libexec/couchdb3/share/server/main.js" \
       
COUCHDB_QUERY_SERVER_COFFEESCRIPT="/usr/local/libexec/couchdb3/bin/couchjs
/usr/local/libexec/couchdb3/share/server/main-coffee.js" \
        ${command}
}

-- 
You are receiving this mail because:
You are the assignee for the bug.