From owner-freebsd-ports@FreeBSD.ORG Wed Aug 30 04:12:25 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3519C16A4DF for ; Wed, 30 Aug 2006 04:12:25 +0000 (UTC) (envelope-from leafy7382@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id BDC0B43D5E for ; Wed, 30 Aug 2006 04:12:24 +0000 (GMT) (envelope-from leafy7382@gmail.com) Received: by py-out-1112.google.com with SMTP id o67so88467pye for ; Tue, 29 Aug 2006 21:12:24 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=YAxA2nHVjUQMBxJR4w0oxA9HKHx3O5oUnpEgZShmt+4pfU8Z/u4BG1tb3cNV+WJR5yMoQETpo+6OHnCeMd32WvM0ziDDmTBIWhu775Eye402+Zo+c88ksB3B/P2dRzt1miNlrLwdEAHg9d0VbkaCedaC9Nd0erC0qOugF0WW1Ck= Received: by 10.35.96.7 with SMTP id y7mr79974pyl; Tue, 29 Aug 2006 21:12:24 -0700 (PDT) Received: by 10.35.124.18 with HTTP; Tue, 29 Aug 2006 21:12:24 -0700 (PDT) Message-ID: Date: Wed, 30 Aug 2006 12:12:24 +0800 From: "Jiawei Ye" To: ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: Jabberd vs PostgreSQL X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Aug 2006 04:12:25 -0000 Hi, I have setup a jabberd2 server to use postgresql as the backend, but the rc scripts need some polishing. postgresql should be started before jabberd2 if it is configured, how can I specify that? Currently postgresql is started after jabberd2, causing the following output during startup: Starting jabberd. Aug 30 12:05:26 sh-mail jabberd/c2s[721]: pgsql: connection to database failed, will retry later: could not connect to server: Connection refused Is the server running on host "localhost" and accepting TCP/IP connections on port 5432? Aug 30 12:05:26 sh-mail jabberd/sm[719]: pgsql: connection to database failed: could not connect to server: Connection refused Is the server running on host "localhost" and accepting TCP/IP connections on port 5432? Aug 30 12:05:34 sh-mail postgres[790]: [1-1] FATAL: the database system is starting up And jabberd2 needs manual startup after that. I can see that postgresql requires LOGIN, but jabberd is BEFORE:LOGIN, what is the proper solution? Jiawei Ye -- "If it looks like a duck, walks like a duck, and quacks like a duck, then to the end user it's a duck, and end users have made it pretty clear they want a duck; whether the duck drinks hot chocolate or coffee is irrelevant."