supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* how to avoid a restart loop?
@ 2005-12-03  7:39 Joshua N Pritikin
  2005-12-04 16:43 ` Joshua N Pritikin
  0 siblings, 1 reply; 2+ messages in thread
From: Joshua N Pritikin @ 2005-12-03  7:39 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 745 bytes --]

Today I noticed that the log was filling up with:

[2005-12-03 06:29:47 UTC] LOG:  could not load root certificate file
+"/var/lib/postgresql/8.0/main/root.crt": No SSL error reported
[2005-12-03 06:29:47 UTC] DETAIL:  Will not verify client certificates.
[2005-12-03 06:29:47 UTC] FATAL:  lock file
+"/var/lib/postgresql/8.0/main/postmaster.pid" already exists
[2005-12-03 06:29:47 UTC] HINT:  Is another postmaster (PID 288) running
in data
+directory "/var/lib/postgresql/8.0/main"?

I got 1 per second!  A few megabytes later, I killed everything and
restart.  Looks OK now, but how to avoid this in the future?

Do I need a ./finish script which does:

  kill `cat /var/lib/postgresql/8.0/main/postmaster.pid`

??

Suggestions please.  ;-)

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: how to avoid a restart loop?
  2005-12-03  7:39 how to avoid a restart loop? Joshua N Pritikin
@ 2005-12-04 16:43 ` Joshua N Pritikin
  0 siblings, 0 replies; 2+ messages in thread
From: Joshua N Pritikin @ 2005-12-04 16:43 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 493 bytes --]

On Sat, Dec 03, 2005 at 01:09:03PM +0530, Joshua N Pritikin wrote:
> Today I noticed that the log was filling up with:

OK, I think I know what happened.  I sent a TERM signal to the
postmaster.  On a TERM signal, the postmaster waits for all client
connections to shutdown before exiting.  Because I was confused, I think
I killed the runsv process watching the postmaster.  runsvdir probably
started a new runsv which repeatedly tried to start a new postmaster.

So I guess it was my fault.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-12-04 16:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-03  7:39 how to avoid a restart loop? Joshua N Pritikin
2005-12-04 16:43 ` Joshua N Pritikin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).