urgent: another postmaster

Started by Scott Frankelalmost 21 years ago3 messagesgeneral
Jump to latest
#1Scott Frankel
leknarf@pacbell.net

After a server crash forced a reboot, `pg_ctl start` fails with a FATAL
error. Log output says that the lock file, postmaster.pid, already
exists.

Can I just su to root and delete the .pid file to relaunch? Or will
this have nasty side-effects?

Thanks in advance!
Scott

#2Scott Marlowe
smarlowe@g2switchworks.com
In reply to: Scott Frankel (#1)
Re: urgent: another postmaster

On Mon, 2005-05-23 at 14:58, Scott Frankel wrote:

After a server crash forced a reboot, `pg_ctl start` fails with a FATAL
error. Log output says that the lock file, postmaster.pid, already
exists.

Can I just su to root and delete the .pid file to relaunch? Or will
this have nasty

Just check first to make sure there really are no postmasters running
and you should be safe

ps aex|grep post

and if there's no output, delete the pid file. If there really are
other postmasters or postgreses running, then kill them first.

#3Scott Frankel
leknarf@pacbell.net
In reply to: Scott Marlowe (#2)
Re: urgent: another postmaster

Bingo -
Thanks!

On May 23, 2005, at 1:14 PM, Scott Marlowe wrote:

Show quoted text

On Mon, 2005-05-23 at 14:58, Scott Frankel wrote:

After a server crash forced a reboot, `pg_ctl start` fails with a
FATAL
error. Log output says that the lock file, postmaster.pid, already
exists.

Can I just su to root and delete the .pid file to relaunch? Or will
this have nasty

Just check first to make sure there really are no postmasters running
and you should be safe

ps aex|grep post

and if there's no output, delete the pid file. If there really are
other postmasters or postgreses running, then kill them first.

---------------------------(end of
broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings