Re: start

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: "H(dot)J(dot) Sanders" <hjs(at)worldonline(dot)nl>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: start
Date: 2004-05-03 20:16:29
Message-ID: Pine.LNX.4.33.0405031414300.29255-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Mon, 3 May 2004, H.J. Sanders wrote:

>
> Hello list.
>
>
> I have difficulties starting the postmaster automatically at boot time
> (everything I tried is done by 'root').
>
> Can someone give me an example for LINUX (SUSE 8).

Just FYI, this probably belongs on admin, but no biggie.

I start my postgresql database with this line:

su - postgres -c 'pg_ctl start | rotatelogs $PGDATA/pglog 86400 2>1&'

If you have apache rotatelogs in the postgres user's path, you can start
the database as postgresql AND set the logs to be rotated every 24 hours
with this line. If not, and you don't need to log the database's
notices and such, then just enter this:

su - postgres -c 'pg_ctl start 2>1&'

In response to

  • start at 2004-05-03 19:36:52 from H.J. Sanders

Browse pgsql-sql by date

  From Date Subject
Next Message patkins 2004-05-04 13:32:11 Procedure failing after upgrade
Previous Message Peter Eisentraut 2004-05-03 19:56:03 Re: start