X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 244CDD1B89F for ; Mon, 25 Aug 2003 18:00:08 -0300 (ADT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 37051-05 for ; Mon, 25 Aug 2003 17:59:38 -0300 (ADT) Received: from vms1.rit.edu (vms1.isc.rit.edu [129.21.3.8]) by svr1.postgresql.org (Postfix) with ESMTP id A7F19D1B523 for ; Mon, 25 Aug 2003 17:59:35 -0300 (ADT) Received: from lister (65-37-12-178.nrp2.roc.ny.frontiernet.net [65.37.12.178]) by ritvax.isc.rit.edu (PMDF V6.2 #30660) with ESMTPA id <01KZVWNGU0AU2VQW20@ritvax.isc.rit.edu> for pgsql-admin@postgresql.org; Mon, 25 Aug 2003 16:59:01 -0400 (EDT) Date: Mon, 25 Aug 2003 17:13:56 -0400 From: Steve Santacroce Subject: Re: pg_ctl won't start postgres, but postmaster will?! To: pgsql-admin@postgresql.org Message-id: <001101c36b4d$cb8fab30$b20c2541@lister> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 X-Mailer: Microsoft Outlook Express 5.50.4927.1200 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal References: X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/302 X-Sequence-Number: 10023 > > chmod 600 ${logfile} > > chown pgsql:pgsql ${logfile} > > [ -x ${PGBIN}/pg_ctl ] && { > > su -l pgsql -c \ > > "[ -d \${PGDATA} ] && exec ${PREFIX}/bin/pg_ctl start -s -w -l > > ${logfile}" > > echo -n ' pgsql' > > > > No errors, no messages, nothing. Then I tried to start pg_ctl by hand. I > > su'd to pgsql, and typed: > > > > /usr/local/bin/pg_ctl -D /pgdata -l /var/log/pgsql > > This command is invalid. You need to add "start" somewhere. > Sorry, forgot to write that. It was in the line. The wierd thing is that I can type: /usr/local/bin/pg_ctl -D /pgdata -l /var/log/pgsql start and it will start, but if I use: su -l pgsql -c exec "/usr/local/bin/pg_ctl -D /pgdata -l /var/log/pgsql start" it doesn't work! And I'm still confused as to why the script doesn't work. > The message "postmaster started successfully" comes from pg_ctl. That > would mean pg_ctl is still running by the time you type this. > > Please check that what you are writing here corresponds exactly to what > you are typing on the console. > Sorry about that. I should have just copied and pasted. Thanks for pointing out my error!