Re: Creating Log file - run in background. - Mailing list pgsql-novice

From Chris
Subject Re: Creating Log file - run in background.
Date
Msg-id 4.3.2.7.2.20001214080608.00b84390@203.25.173.1
Whole thread Raw
In response to Re: Creating Log file - run in background.  (Sterling <smullett@omeninc.com>)
Responses Re: Creating Log file - run in background.
List pgsql-novice
Hi,

>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.

HTH,

------------------------
Chris Smith
http://www.squiz.net


pgsql-novice by date:

Previous
From: "Brett W. McCoy"
Date:
Subject: Re: check_primary_key on Postgres 6.5.3-23
Next
From: Mauricio Alarcon
Date:
Subject: select & insert