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

Re: Creating Log file - run in background.

From: Chris <csmith(at)squiz(dot)net>
To: Sterling <smullett(at)omeninc(dot)com>
Cc: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Creating Log file - run in background.
Date: 2000-12-13 21:09:57
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice

>I don't understand.
>Isn't that what that command is doing? It contains the server.log path,
>except for all that <dev/null> stuff. What is that for?

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

These are the paths to the programs.. It just doesn't know where to put the 
log. Depending on where you run it from, it will try to write the log file 
to that directory. eg. If it's being run from a startup script (eg 
/etc/rc.d/* <- depending on version/distribution) it will try to write to 
/etc/rc.d/*.. which it's not allowed to do.

>Should the command look like this than:
>nohup /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data/server.log &

That should work, yep.


Chris Smith

In response to


pgsql-novice by date

Next:From: Mauricio AlarconDate: 2000-12-13 21:17:59
Subject: select & insert
Previous:From: Brett W. McCoyDate: 2000-12-13 20:44:39
Subject: Re: check_primary_key on Postgres 6.5.3-23

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