Re: Leftover PID files
От
Seth Rubin
Тема
Re: Leftover PID files
Дата
Msg-id
CNELLBDHOKALJPHOOBBEMEPBDKAA.srubin@thoughtprocess.com
Ответ на
Leftover PID files (Richard Sydney-Smith)
Список
Дерево обсуждения
Leftover PID files "Richard Sydney-Smith" <richard@ibisaustralia.com>
Re: Leftover PID files Seth Rubin <srubin@thoughtprocess.com>
Re: Leftover PID files Frank Seesink <frank@mail.wvnet.edu>
Re: Leftover PID files Jason Tishler <jason@tishler.net>
Re: Leftover PID files Frank Seesink <frank@mail.wvnet.edu>
Re: Leftover PID files Jason Tishler <jason@tishler.net>
Re: Leftover PID files Frank Seesink <frank@mail.wvnet.edu>
Re: Leftover PID files Jason Tishler <jason@tishler.net>
Can't open Bash Shell with postgres user account "Mike Leahy" <mgleahy@fes.uwaterloo.ca>
Re: Can't open Bash Shell with postgres user account Jason Tishler <jason@tishler.net>
Re: Leftover PID files Jason Tishler <jason@tishler.net>
Re: Leftover PID files Seth Rubin <srubin@thoughtprocess.com>
You basically need a command file to run at boot time. There are many ways to do this. For example, I'm under WinXP, so I downloaded cygwin's init module (which emulates system V init) and added the following to the /etc/rc file that init runs at startup:
# Delete postgres sockets
chmod 777 /tmp/.s.PGSQL.*
rm -f /tmp/.s.PGSQL.*
# Delete Postgres PID file
chmod 777 /usr/share/postgresql/data/postmaster.pid
rm -f /usr/share/postgresql/data/postmaster.pid
chmod 777 /tmp/.s.PGSQL.*
rm -f /tmp/.s.PGSQL.*
# Delete Postgres PID file
chmod 777 /usr/share/postgresql/data/postmaster.pid
rm -f /usr/share/postgresql/data/postmaster.pid
-----Original Message-----
From: pgsql-cygwin-owner@postgresql.org [mailto:pgsql-cygwin-owner@postgresql.org]On Behalf Of Richard Sydney-Smith
Sent: Tuesday, September 16, 2003 11:55 PM
To: pgsql-cygwin@postgresql.org
Subject: [CYGWIN] Leftover PID filesWhen the system restarts after being incorectly shut down a PID file is left in the data directory which will stop the service re-starting.How do you get the operating system to delete this file before attempting to restart the service?thanksRichard
В списке pgsql-cygwin по дате отправления