Skip site navigation (1) Skip section navigation (2)

Creating Log file - run in background.

From: Sterling <smullett(at)omeninc(dot)com>
To: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Creating Log file - run in background.
Date: 2000-12-12 23:28:28
Message-ID: 3A36B49C.79FE9C7E@omeninc.com (view raw or flat)
Thread:
Lists: pgsql-novice
H-

I am going through the source version of the postgres install. I have
successfully executed the instructions in the INSTALL file without
errors up to this point.
I don't want postgres to display it's data and processing during every
execution of a sql and as someone mentioned I should put it to a log
file.
I originally did this line.

nohup /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data
</dev/null >>server.log 2>>1 &

And it said the same thing as below. So I figure that I'd touch the
server.log file just in case it was looking for it. But as you can see
it did the same error.

[postgres(at)XXXX src]$ touch /usr/local/pgsql/data/server.log
[postgres(at)XXXX src]$ nohup /usr/local/pgsql/bin/postmaster -D
/usr/local/pgsql/data </dev/null >>server.log 2>>1 &
[1] 13697
[postgres(at)XXXX src]$ bash: server.log: Permission denied

[1]+  Exit 1                  nohup /usr/local/pgsql/bin/postmaster -D
/usr/local/pgsql/data </dev/null >>server.log 2>>1
[postgres(at)XXXX src]$

Here is the params on the file.
-rw-rw-r--    1 postgres postgres        0 Dec 12 19:07
/usr/local/pgsql/data/server.log


What could be the problem? Is there another way to put postgres in the
background and still keep a log file of errors? I saw the -S option but
it didn't provide for a log file.

Also, what is nohup?

Thanks for any assistance anyone could provide.
-Sterling




Responses

pgsql-novice by date

Next:From: SterlingDate: 2000-12-12 23:35:08
Subject: Re: gmake install error
Previous:From: John BurskiDate: 2000-12-12 22:57:19
Subject: Re: What's this mean?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group