Re: Problem: Postgresql not starting

From: Christoph Haller <ch(at)rodos(dot)fzk(dot)de>
To: mohan(at)physics(dot)gmu(dot)edu
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Problem: Postgresql not starting
Date: 2003-11-27 11:05:40
Message-ID: 200311271005.LAA22427@rodos
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

>
> 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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Alexander M. Pravking 2003-11-27 14:11:25 Validity check in to_date?
Previous Message Andreas Tille 2003-11-27 08:42:09 Re: Scaler forms as function arguments