X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id D9C46D1B44E for ; Thu, 27 Nov 2003 10:06:49 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 55437-05 for ; Thu, 27 Nov 2003 06:06:20 -0400 (AST) Received: from fzkmail2.fzk.de (fzkmail2.fzk.de [141.52.27.52]) by svr1.postgresql.org (Postfix) with SMTP id 2F300D1B443 for ; Thu, 27 Nov 2003 06:06:09 -0400 (AST) Received: FROM resy5.fzk.de BY fzkmail2.fzk.de ; Thu Nov 27 11:05:42 2003 +0100 Received: œby rodos.fzk.de with ESMTP (8.8.6 (PHNE_17135)/8.7.1) id LAA28309; Thu, 27 Nov 2003 11:05:41 +0100 (MET) From: Christoph Haller Message-Id: <200311271005.LAA22427@rodos> Subject: Re: Problem: Postgresql not starting To: mohan@physics.gmu.edu Date: Thu, 27 Nov 2003 11:05:40 MET Cc: pgsql-sql@postgresql.org In-Reply-To: <64655.138.88.163.115.1069860552.squirrel@physics.gmu.edu>; from "mohan@physics.gmu.edu" at Nov 26, 103 4:35 pm X-Mailer: Elm [revision: 212.4] X-Virus-Scanned: by amavisd-new at postgresql.org X-Amavis-Alert: BAD HEADER Non-encoded 8-bit data (char 9C hex) in message header 'Received' Received: \234by rodos.fzk.de... ^ X-Archive-Number: 200311/303 X-Sequence-Number: 16118 > > Hi All > I am using postgresql 7.2 on Linux. It does not start when i am trying th= > is > /etc/rc.d/init.d/postgresql restart. > It give an error saying "postmaster already running". > I have done > rm -f /var/lib/pgsql/data/postmaster.pid > and > rm -f /var/run/postmaster.pid > > But it still says the same. whenever i restart with the above command > When say "stop" it says failed and when i say "start" it says postmaster > already running. > Please help me out > > --m > I've seen the other replies, but IMHO you are not supposed to remove /var/lib/pgsql/data/postmaster.pid to stop the postmaster but kill $(head -n 1 $PGDATA/postmaster.pid) RTFM HTH Regards, Christoph