pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedProblem: Postgresql not starting
4+ messages / 4 participants
[nested] [flat]
* Problem: Postgresql not starting
@ 2003-11-26 15:29 mohan@physics.gmu.edu
2003-11-26 15:45 ` Re: Problem: Postgresql not starting Achilleus Mantzios <achill@matrix.gatewaynet.com>
2003-11-26 17:29 ` Re: Problem: Postgresql not starting Martin Knipper <knipper@mk-os.de>
2003-11-27 11:05 ` Re: Problem: Postgresql not starting Christoph Haller <ch@rodos.fzk.de>
0 siblings, 3 replies; 4+ messages in thread
From: mohan@physics.gmu.edu @ 2003-11-26 15:29 UTC (permalink / raw)
To: pgsql-sql
Hi All
I am using postgresql 7.2 on Linux. It does not start when i am trying this
/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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Problem: Postgresql not starting
2003-11-26 15:29 Problem: Postgresql not starting mohan@physics.gmu.edu
@ 2003-11-26 15:45 ` Achilleus Mantzios <achill@matrix.gatewaynet.com>
2 siblings, 0 replies; 4+ messages in thread
From: Achilleus Mantzios @ 2003-11-26 15:45 UTC (permalink / raw)
To: mohan@physics.gmu.edu; +Cc: pgsql-sql
Startup scripts for linux hanging around are sometimes
broken.
You better write your own.
O kyrios mohan@physics.gmu.edu egrapse stis Nov 26, 2003 :
> Hi All
> I am using postgresql 7.2 on Linux. It does not start when i am trying this
> /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
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
>
--
-Achilleus
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Problem: Postgresql not starting
2003-11-26 15:29 Problem: Postgresql not starting mohan@physics.gmu.edu
@ 2003-11-26 17:29 ` Martin Knipper <knipper@mk-os.de>
2 siblings, 0 replies; 4+ messages in thread
From: Martin Knipper @ 2003-11-26 17:29 UTC (permalink / raw)
To: pgsql-sql
Hi,
Am 11/26/03 16:29 schrieb mohan@physics.gmu.edu:
> Hi All
> I am using postgresql 7.2 on Linux. It does not start when i am trying this
> /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
Try to find out, if the postmaster if really up by doing something like
ps -e | grep postmaster.
Then you may want to take a look in the script /etc/init.d/postgresql.
Where is the PID-File actually placed ?
It looks like you are trying to remove the PID-File without really
knowing where it is supposed to be placed ?!
The next option you have is to take a look at some logfiles (e.g
var/log/messages or something depending on your settings).
Greetings,
Martin
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Problem: Postgresql not starting
2003-11-26 15:29 Problem: Postgresql not starting mohan@physics.gmu.edu
@ 2003-11-27 11:05 ` Christoph Haller <ch@rodos.fzk.de>
2 siblings, 0 replies; 4+ messages in thread
From: Christoph Haller @ 2003-11-27 11:05 UTC (permalink / raw)
To: mohan@physics.gmu.edu; +Cc: 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
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2003-11-27 11:05 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-11-26 15:29 Problem: Postgresql not starting mohan@physics.gmu.edu
2003-11-26 15:45 ` Achilleus Mantzios <achill@matrix.gatewaynet.com>
2003-11-26 17:29 ` Martin Knipper <knipper@mk-os.de>
2003-11-27 11:05 ` Christoph Haller <ch@rodos.fzk.de>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox