Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9984FCE81 for ; Sun, 2 Feb 2014 05:40:46 +0000 (UTC) Received: (qmail 57616 invoked by uid 500); 2 Feb 2014 05:40:45 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 57039 invoked by uid 500); 2 Feb 2014 05:40:37 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 57025 invoked by uid 99); 2 Feb 2014 05:40:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Feb 2014 05:40:35 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [216.39.63.245] (HELO nm7-vm9.access.bullet.mail.gq1.yahoo.com) (216.39.63.245) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Feb 2014 05:40:28 +0000 Received: from [216.39.60.169] by nm7.access.bullet.mail.gq1.yahoo.com with NNFMP; 02 Feb 2014 05:40:07 -0000 Received: from [216.39.60.231] by tm5.access.bullet.mail.gq1.yahoo.com with NNFMP; 02 Feb 2014 05:40:07 -0000 Received: from [127.0.0.1] by omp1002.access.mail.gq1.yahoo.com with NNFMP; 02 Feb 2014 05:40:07 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 750727.34878.bm@omp1002.access.mail.gq1.yahoo.com Received: (qmail 86986 invoked by uid 60001); 2 Feb 2014 05:40:07 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1391319607; bh=H+v0/VbN9nn6+hRxC0wcNq23+bS8Og2c0zeeD+xDsNs=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=rCaAIq4RWL1cHfkUNbA8JMVg/fRD8NZrZeypxYo2X0ELg0CY51IdeBhnNmoCVTqagvwAw/1BjPiNWz+0Dilzd94oJ31lGaRvX7Wa0PVYOVwHxern0Me2FA4c707u6+PA5JSBJEuTDciEX24roI8BS+UFXQ/co4ZeWssIjH3hkeg= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=KbZgX9PWLON7NAyWbTJL9pRs8wAysAaHCazVDwjUbT6L7rl4w4vqslNRwQlJAQV7DcI2bZbTCZSonGjqqleNRRby1Ik4HZQWhKV+FoSqKU11KGqeMt0hdNIDV6r4M9VZfoc7E/GwlCcGnZH7RnbyZk49nbiQkZh9Y7gpeG+L1BU=; X-YMail-OSG: 1rBV6EYVM1meKkripLVrt5dNWVSQ0Qk9KfYeZwFEBR.wXIO f2fssUkzxFg_kgD8K6Vl9ujxRxePeSGKQmtqJj7NgjIvYmktsgYzaTRLae6I qa0TeDGK_C7RQhCoR7jOSCbAr6SDyqkQENpQWlSXSZGPzTZV5cJnNuaMEFa0 3WZWXdN.gjJGlLIVCLFysFCD88yo_8qBR3s61gFO8NI04S7pWIF1zKdmjBta OB9lRGzxBen8NsjNehiBjlIEOVVQaok2RTJfTl7iKA30OtFMsuXZOxRo_0cY cQgbmbdY3Z2duSAx1AHHmxgBeCElxUUeZbxaXBzRRW2wJ8vLF39LaHPmwUba deaYwIigJewkqaiSDNKaTbLOiSXUZs1GjhCmn6wpCj6M_ak1SP.RwYIF9tPP CpyL_qlhZ0ht4uLuFkVon765o.2EFxjK_uhUsV0b_5mQIldHci1u7NVynnXP vyfDxhSeq4Sgr859JvMs2xLymJLJEK2YxxZT4K_cFFEC_RpPSgRg4PkUynb2 6GifdiMkP7YzlIeJKhYwZfqL83ZoxyKIX2rxET_yemGIyXHmP4KR9DMWvI5B 1NJ.BB3qNv2s6AlNMMUU4o1w19DOeDrhuQ0nSUADuBbc- Received: from [99.189.12.49] by web181704.mail.ne1.yahoo.com via HTTP; Sat, 01 Feb 2014 21:40:07 PST X-Rocket-MIMEInfo: 002.001,SSBhbSB1c2luZyB2ZXJzaW9uIDEuNS7CoCBJIGNhbiBnZXQgdGhlIGRhZW1vbiB0byBzdGFydCwgYnV0IHRoZXJlIGRvZXMgbm90IGFwcGVhciB0byBiZSBhbnkgY29tbXVuaWNhdGlvbiBvbiBzdGRpbi9zdGRvdXQuCgpCZWxvdyBhcmUgbXkgc2V0dGluZ3MsIGFuZCBhIHNpbXBsZSBDIGV4YW1wbGUuIEkgd291bGQgZXhwZWN0IHRoaXMgc2ltcGxlIGNvZGUgdG8gbG9nIGEgbWVzc2FnZSwgdGhlbiBnaXZlIG1lIGEgcmVwbHkgb2YgdGhlIGNvbmZpZyBzZXR0aW5ncy4gSG93ZXZlciBub3RoaW5nIGhhcHBlbnMBMAEBAQE- X-Mailer: YahooMailWebService/0.8.174.629 Message-ID: <1391319607.37651.YahooMailNeo@web181704.mail.ne1.yahoo.com> Date: Sat, 1 Feb 2014 21:40:07 -0800 (PST) From: Scott Weber Reply-To: Scott Weber Subject: Cannot get os_daemon api to function To: COUCHDB MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-31143512-1431604877-1391319607=:37651" X-Virus-Checked: Checked by ClamAV on apache.org ---31143512-1431604877-1391319607=:37651 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable I am using version 1.5.=A0 I can get the daemon to start, but there does no= t appear to be any communication on stdin/stdout.=0A=0ABelow are my setting= s, and a simple C example. I would expect this simple code to log a message= , then give me a reply of the config settings. However nothing happens.=0A= =0ACouch does restart the daemon if I change a config setting under [os_dae= mons].=A0 And the settings do appear in the config page of Futon.=0A=0AThe = example program does also exit when Couch closes the stdin connection, as e= xpected.=0A=0A=0AAny advice is appreciated.=0A=0A-Scott=0A=0A=0ACONFIG SETT= INGS:=0A[log]=0Alevel =3D info=0A=0A[os_daemons]=0A=0Amy_test =3D c:/path/n= ativeDaemon/debug/NativeDaemon.exe=0A=0A[my_test]=0AValue =3D 10,002=0AOthe= rValue =3D The other value=0A=0A=0A=0AActual C code=A0 (uses Windows Sleep,= otherwise is agnostic) :=0A=0A=0Aint main() {=0A=A0=A0=A0 char buffer[257]= ;=0A=0A=A0=A0=A0 LogMessage("\nSTART:", "Daemon Startup");=A0 //=A0 My own = log file to disk=0A=A0=A0=A0 Sleep(3000);=0A=0A=A0=A0=A0 fputs("[\"log\",{\= "log\" : \"The process started\"}]\n",stdout);=0A=A0=A0=A0 fputs("[\"get\",= \"os_daemons\"]\n",stdout);=0A=0A=A0=A0=A0 do {=0A=A0 =A0 =A0=A0=A0 fgets(= buffer,256,stdin);=0A=A0=A0=A0 =A0=A0=A0 if (feof(stdin)) {=0A=A0=A0=A0 =A0= =A0=A0 =A0=A0=A0 LogMessage("\nCLOSE:","Closed STDIN"); //=A0 This does exi= t when expected=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 break;=0A=A0=A0=A0 =A0=A0= =A0 }=0A=0A=0A// etc... into loop. ---31143512-1431604877-1391319607=:37651--