Thread: createdb ok, but need more help
I tryied:
su postgres
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pgsql/lib
and I got to createdb and start psql.
But after a logout , I need do "export..." again.
In my Linux red hat machine, there is a script in
/etc/rc.d/init.d/postgresql
I use /etc/rc.d/init.d/postgresql start
in a /etc/rc.d/rc.local ( or something like this )
Hoh do I do it in FreeBSD to start the postmaster when booting??
Thanks,
Eduardo
su postgres
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pgsql/lib
and I got to createdb and start psql.
But after a logout , I need do "export..." again.
In my Linux red hat machine, there is a script in
/etc/rc.d/init.d/postgresql
I use /etc/rc.d/init.d/postgresql start
in a /etc/rc.d/rc.local ( or something like this )
Hoh do I do it in FreeBSD to start the postmaster when booting??
Thanks,
Eduardo
if you put the export in your .profile, it will be there every time you log in. I believe there is a startup script for FreeBSD in the docs somewhere. If you stick it in /etc/rc.local , that will run it. Jacques On Tue, Nov 21, 2000 at 04:03:06PM -0200, Eduardo Kotujansky wrote: > I tryied: > > su postgres > export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pgsql/lib > > and I got to createdb and start psql. > But after a logout , I need do "export..." again. > > In my Linux red hat machine, there is a script in > /etc/rc.d/init.d/postgresql > > I use /etc/rc.d/init.d/postgresql start > > in a /etc/rc.d/rc.local ( or something like this ) > > Hoh do I do it in FreeBSD to start the postmaster when booting?? > > Thanks, > Eduardo >