Bug 271177 - databases/couchdb3: The service start script has an error in the path
Summary: databases/couchdb3: The service start script has an error in the path
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Dave Cottlehuber
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-01 17:34 UTC by jjachuf
Modified: 2023-05-22 14:20 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (dch)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jjachuf 2023-05-01 17:34:40 UTC
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}
}
Comment 1 Dave Cottlehuber freebsd_committer freebsd_triage 2023-05-22 10:19:45 UTC
thanks! This will be fixed in the 3.3.2 release landing today.
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-05-22 14:14:22 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b70939ee08bde39f31b5dc578a515cef5472fc0f

commit b70939ee08bde39f31b5dc578a515cef5472fc0f
Author:     Dave Cottlehuber <dch@FreeBSD.org>
AuthorDate: 2023-05-22 14:12:56 +0000
Commit:     Dave Cottlehuber <dch@FreeBSD.org>
CommitDate: 2023-05-22 14:12:56 +0000

    databases/couchdb3: update to 3.3.2

    And fix a long-standing error in rc.d script that affects new installs.

    PR:             271177
    Reported by:    Jose Jachuf <jjachuf@gmail.com>
    Sponsored by:   SkunkWerks, GmbH

 databases/couchdb3/Makefile                       |  3 +--
 databases/couchdb3/distinfo                       |  6 +++---
 databases/couchdb3/files/couchdb3.in              |  4 ++--
 databases/couchdb3/files/patch-rel_reltool.config |  2 +-
 databases/couchdb3/pkg-plist                      | 14 +++++++-------
 5 files changed, 14 insertions(+), 15 deletions(-)