Re: Require Assistance Solving Problem - erroneous pg_hba

From: Murthy Kambhampaty <murthy(dot)kambhampaty(at)goeci(dot)com>
To: 'Greg Kelley' <gkelley(at)britannicaviation(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Require Assistance Solving Problem - erroneous pg_hba
Date: 2003-04-17 16:25:58
Message-ID: 2D92FEBFD3BE1346A6C397223A8DD3FC0921ED@THOR.goeci.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Greg Kelley [mailto:gkelley(at)britannicaviation(dot)com] writes:
[snip]
>... Postmaster starts with:
>
>su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl -D $PGDATA -p
>/usr/bin/postmaster -o '-i -p ${PGPORT}' start > /var/log/pgsql 2>&1" <
>/dev/null
you might want to change your start line to
su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl -D $PGDATA -p \
/usr/bin/postmaster -o '-i -p ${PGPORT}' start >> /var/log/pgsql \
2>&1" </dev/null

note the >> /var/log/pgsql, which appends to the file -- creating it if
necessary -- rather than replacing it each time you start the postmaster, as
it is now set to do. See, the Advanced Bash Scripting Guide, particularly
http://www.tldp.org/LDP/abs/html/io-redirection.html
on this.

(Server log rotation is a topic continually discussed on this list; you
might want to look into it.)

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2003-04-17 16:53:08 Re: Require Assistance Solving Problem - erroneous pg_hba.conf
Previous Message Bruce Momjian 2003-04-17 14:44:33 Re: Require Assistance Solving Problem - erroneous pg_hba.conf