Postgresql not starting...

2004-11-05 Thread v . demartino2
I'm accustomed to work with postgresql under linux both debian and gentoo.

Now on my pentium 3 box under freeBSD 5.2.1 I've just compiled the following
ports:
postgresql7
postgresql7-client
postgresql7-opt

In /usr/local/etc/rc.d I find 010.pgsql.sh to start the service but
/usr/local/etc/rc.d/010.pgsql.sh start
doesn't look to do anything.

if I su - pgsql then try to createdb an error of missing server pops
up.
Could you please help in a straightforward way how to set postgresql straight?

By the way how can I tell FreeBSD I want the postgresql to be started at
boot time?

Thanks Vittorio
Vittorio


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Postgresql not starting...

2004-11-05 Thread Dick Davies
* [EMAIL PROTECTED] [EMAIL PROTECTED] [1153 22:53]:

 In /usr/local/etc/rc.d I find 010.pgsql.sh to start the service but
 /usr/local/etc/rc.d/010.pgsql.sh start
 doesn't look to do anything.
 
 if I su - pgsql then try to createdb an error of missing server pops
 up.
 Could you please help in a straightforward way how to set postgresql straight?

less ~pgsql/post-install-notes 

you want 

 su -l pgsql -c initdb

initdb creates the postgres system catalogs etc, you can't use createdb without
them (since createdb makes databases by copying the template1  database).

 By the way how can I tell FreeBSD I want the postgresql to be started at
 boot time?

'/usr/local/etc/rc.d/010.pgsql.sh start'  should work after you've run that.

Once the postmaster starts, then createdb will work.

-- 
Aww, you know what always cheers me up? Laughing at other people's misfortunes. - 
Bender
Rasputin :: Jack of All Trades - Master of Nuns
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]