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 AB59ED1B8E6 for ; Mon, 25 Aug 2003 12:00:23 -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 39957-01 for ; Mon, 25 Aug 2003 11:59:51 -0300 (ADT) Received: from vms3.rit.edu (vms3.isc.rit.edu [129.21.3.10]) by svr1.postgresql.org (Postfix) with ESMTP id B0100D1B8CB for ; Mon, 25 Aug 2003 11:59:51 -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 <01KZVK39TP9M30N78G@ritvax.isc.rit.edu> for pgsql-admin@postgresql.org; Mon, 25 Aug 2003 10:59:08 -0400 (EDT) Date: Mon, 25 Aug 2003 11:14:00 -0400 From: Steve Santacroce Subject: pg_ctl won't start postgres, but postmaster will?! To: pgsql-admin@postgresql.org Message-id: <000701c36b1b$83ecd050$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 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/290 X-Sequence-Number: 10011 I have had a lot of problems trying to install the postgres on a second FreeBSD box. I installed it using the ports install, so that part of the process went painlessly. however, when I tried to run the .sh script file that was installed, I get nothing. The script's commands are: 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 and nothing, postmaster still doesn't start! If I type: su -l pgsql -c exec "/usr/local/bin/postmaster -D /pgdata" I get a "postmaster started successfully" reply, BUT postmaster STILL isn't running. The only way I can get postmaster to run is to first su into pgsql, then type: /usr/local/bin/postmaster -D /pgdata Then it starts up fine! None of this makes any sense to me at all. On a side note, even when postmaster is running, webmin says that postgres isn't running, even tho I told it where the database is. Just one more thing that's messed up. Any ideas as to why this isn't working?