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: 4.3.2.7.2.20001214080608.00b84390@203.25.173.1
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-novice by date

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