Date: Wed, 30 Aug 2006 03:18:00 -0300 From: Duane Whitty <duane@dwlabs.ca> To: Jiawei Ye <leafy7382@gmail.com> Cc: freebsd-ports@freebsd.org Subject: Re: Jabberd vs PostgreSQL Message-ID: <20060830061800.GE93062@dwpc.dwlabs.ca> In-Reply-To: <c21e92e20608292112u714e3b5ck9ca346acffe4a30b@mail.gmail.com> References: <c21e92e20608292112u714e3b5ck9ca346acffe4a30b@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 30, 2006 at 12:12:24PM +0800, Jiawei Ye wrote: > 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? > Hi, In jabberd2 rc script I would write REQUIRE: postgresql In postgresql rc script I would write BEFORE: NETWORKING SERVERS Best Regards, Duane Whitty > 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." > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060830061800.GE93062>