Обсуждение: getting postgres server on freebsd startup?

Поиск
Список
Период
Сортировка

getting postgres server on freebsd startup?

От
Jeff Hamann
Дата:
I've installed and tested postgresql just fine on FreeBSD 8.2.

I've been trying to get postgresql (the server) to start on bootup using /etc/rc.conf system.

I'm using the script from the tarball (found in the contrib/start-scripts/freebsd of postreges tarball)

I can't seem to get it to work on FreeBSD 8.2 amd64 (I don't think the arch is important here, but you never know).

As instructed in the script, I've moved the file to /usr/local/etc/rc.d/postgresql

I've added the "postgresql_enable=YES" to /etc/rc/conf.


I've /usr/local/pgsql/bin./postgres --help'd too and can't seem to get traction.

Can you please help? I'm sure this is something simple I'm neglecting.

Please don't respond with "Why don't you just use the ports collection?" There's reasons - like: 1) need to build from source, 3) it's for a tutorial, and 3) postgresql90-server isn't building.

Respectfully,
Jeff.


Jeff Hamann, PhD
PO Box 1421
Corvallis, Oregon 97339-1421
541-754-2457
jeff.hamann[at]forestinformatics[dot]com
jeff.d.hamann[at]gmail[dot]com
http://www.forestinformatics.com








Re: getting postgres server on freebsd startup?

От
Vick Khera
Дата:
On Thu, Jun 16, 2011 at 1:29 PM, Jeff Hamann <jeff.d.hamann@gmail.com> wrote:
> Please don't respond with "Why don't you just use the ports collection?"
> There's reasons - like: 1) need to build from source, 3) it's for a
> tutorial, and 3) postgresql90-server isn't building.

1) ports do build from source. packages are pre-built.
3) the server builds just fine.

How about you just look at what the port does, to see what you're
missing to get Pg to start.

Re: getting postgres server on freebsd startup?

От
Amitabh Kant
Дата:
On Thu, Jun 16, 2011 at 10:59 PM, Jeff Hamann <jeff.d.hamann@gmail.com> wrote:
<snip>
Please don't respond with "Why don't you just use the ports collection?" There's reasons - like: 1) need to build from source, 3) it's for a tutorial, and 3) postgresql90-server isn't building.

Respectfully,
Jeff.



While I can't answer your other questions, I have just completed  a fresh build of postgresql90-server on FreeBSD 8.2 (amd64 arch) without any problems using the ports. What error did you receive when using the port build?

With regards

Amitabh