Re: Leftover PID files

Поиск
Список
Период
Сортировка
От Seth Rubin
Тема Re: Leftover PID files
Дата
Msg-id CNELLBDHOKALJPHOOBBEMEPBDKAA.srubin@thoughtprocess.com
обсуждение исходный текст
Ответ на Leftover PID files  ("Richard Sydney-Smith" <richard@ibisaustralia.com>)
Ответы Re: Leftover PID files  (Frank Seesink <frank@mail.wvnet.edu>)
Список pgsql-cygwin
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
-----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 files

When 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?
 
thanks
 
Richard

В списке pgsql-cygwin по дате отправления:

Предыдущее
От: Jason Tishler
Дата:
Сообщение: Re: The NT services Cygwin PostgreSQL installation
Следующее
От: Igor Pechtchanski
Дата:
Сообщение: Re: Problem with stopping postmaster with pg_ctl