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

Re: starting the postmaster

From: John Taylor <postgres(at)jtresponse(dot)co(dot)uk>
To: Brian <Brrrian(at)Excite(dot)com>, pgsql-novice(at)postgresql(dot)org
Subject: Re: starting the postmaster
Date: 2002-03-08 08:38:40
Message-ID: 02030808384000.01626@splash.hq.jtresponse.co.uk (view raw or flat)
Thread:
Lists: pgsql-novice
On Friday 08 March 2002 01:15, Brian wrote:
> Hi John,
> 
> I am getting a FAILED notice on your construction.
> 
> if I delete the   >/dev/null 2>&1   I can see:
> 
> /usr/bin/pg_ctl: /usr/bin/postmaster -i: No such file or directory
> 
> as a response...
> 

Hmmm...
That works for me with postgres 7.1, but having looked at the pg_ctl manual page, it probably isn't the
best way to do it.

You probably need to use the -o option to pg_ctl ...
su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl -D $PGDATA -p /usr/bin/postmaster -o '-i' start  > /dev/null 2>&1" < /dev/null

Regards
JohnT

In response to

pgsql-novice by date

Next:From: wimDate: 2002-03-08 10:14:11
Subject: Good tutorial wanted...
Previous:From: Yannick ALLUSSEDate: 2002-03-08 07:49:14
Subject: Size of the Postgres DB

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