run "su - postgres" Then it will export the env variables (which you set in
the .bash_profile file). If you do "su postgres" it may not export.
Raj
Bogdan Paduraru wrote:
> Hello,
> I installed Postgresql 7.0.2 on a Redhat Linux 6.1 and I want now to run
> it, but it seems I have a problem.
> I connected as root on my server.
> After that I do :
> $ su postgres
> $nohup /usr/local/pgsql/data \ </dev/null >>server.log 2>>1 &
> After the second command I get
> bash : server.log: Permission denied
> Can you help me?
> And another thing : how can I make it to run when I start my Linux
> server?
>
> Bogdan