Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jan 2012 16:20:18 +0100
From:      =?UTF-8?B?SGVyYnkgVm9qxI3DrWs=?= <herby@mailbox.sk>
To:        till@php.net
Cc:        ports@freebsd.org
Subject:   Re: FreeBSD Port: couchdb-1.1.0_2,1
Message-ID:  <4F198632.3090701@mailbox.sk>
In-Reply-To: <CAFx2Yf7UQGfChENaFaUemN5sUF4YTv9qLrGpXDtj7xqAb75yNQ@mail.gmail.com>
References:  <4F183915.3020304@mailbox.sk> <CAFx2Yf7UQGfChENaFaUemN5sUF4YTv9qLrGpXDtj7xqAb75yNQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
till wrote:
> Can you send me a unified diff and a PR. I'll take a look.

--- /usr/local/etc/couchdb.old  2012-01-20 16:16:58.000000000 +0100
+++ /usr/local/etc/rc.d/couchdb 2012-01-19 16:35:09.000000000 +0100
@@ -57,7 +57,8 @@
         couchdb_flags="-b -a ${couchdb_etcdir}/default.ini -a 
${couchdb_etcdir}/local.ini ${respawn} -o ${logfile} -e ${errfile} -p 
${pidfile}"
  }

-start_precmd=${name}_prestart
+#start_precmd=${name}_prestart
+case "$1" in *start) couchdb_prestart;; esac
  stop_cmd="${command} -d"
  status_cmd="${command} -s"

I don't know that is PR.

> I tested this prior to the commit. Which version of FreeBSD are you using?

[herby@k143 ~]$ uname -a
FreeBSD k143 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 
18:45:57 UTC 2011 
root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
[herby@k143 ~]$ sudo cat /var/db/freebsd-update/tag
freebsd-update|amd64|8.2-RELEASE|6|5b20869b7b0307cbcffa42fc4316559afd3a58a54ca174ab2db1ba973817c17e|1343779200

> On Thu, Jan 19, 2012 at 4:39 PM, Herby Vojčík <herby@mailbox.sk
> <mailto:herby@mailbox.sk>> wrote:
>
>     Hello,
>
>     the latest change made rc.d script not working. When run from the
>     cli as /usr/local/etc/rc.d/couchdb start, it begins writing to the
>     terminal and hangs there, not returning to the prompt. Ctrl+C must
>     be issued to stop it and return to the prompt.
>
>     While hanged, ps ax run in parallel session shows couchdb is
>     started, but with no flags whatsoever (sh -c "/usr/local/bin/couchdb ").
>
>     The couchdb_prestart function gets run (I put echos in there), but
>     its couchdb_flags is not taken into account.
>
>     I had to make this change:
>
>     60c60,61
>     < start_precmd=${name}_prestart
>     ---
>      > #start_precmd=${name}_prestart
>      > case "$1" in *start) couchdb_prestart;; esac
>
>     to make it work. When run during boot, it has the same symptoms
>     (runs the couchdb without flags) and also needs the change above.
>
>     Herby



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F198632.3090701>