Re: socket file missing

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: nus4u(at)gmx(dot)net
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: socket file missing
Date: 2007-09-14 19:25:26
Message-ID: dcc563d10709141225p237532bdj1954e082b5d29e1c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 9/14/07, nus4u(at)gmx(dot)net <nus4u(at)gmx(dot)net> wrote:
> > Sounds like postgresql is being started, and then the /tmp directory
> > is being cleared of old files by your OS. What's the Sxx number on
> > the startup file in /etc/init.d/rcx.d that you're using (assuming SYSV
> > init)
>
> Thanks Scott !
>
> I change the location of the socket file and it isn t deleted anymore !
> Until now i am not quite sure which script deletes the socket files, i
> guess it is "tmpwatch" which is called from cron.hourly, but disabling
> and restarting didn t solve the problem.
> In rc3.d it has the Numer S96postgres, after this script only
> sendmail,rhnsd,haldaemon,messagebus and local are executed, but
> none of them will delete tmp files.
> Any idea which and where the script is started who deletes tmp files ?
> System is a Red Hat ES 4 !

On my laptop running fc4, there's this line in rc.sysinit:

rc.sysinit:rm -f /tmp/.X*-lock /tmp/.lock.* /tmp/.gdm_socket /tmp/.s.PGSQL.*

If your startup script runs before a line like that one above, you'd
get the kind of failure you're talking about.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2007-09-15 23:49:03 Hmmm ... isn't count_nondeletable_pages all wet?
Previous Message nus4u 2007-09-14 18:38:00 Re: socket file missing