Re: Service reboot leaves postmaster.pid

Поиск
Список
Период
Сортировка
От Dmitry Yurtaev
Тема Re: Service reboot leaves postmaster.pid
Дата
Msg-id 002001c0f685$20658020$0107a8c0@SULACO
обсуждение исходный текст
Ответ на RE: Service reboot leaves postmaster.pid  ("Henshall, Stuart - WCP" <SHenshall@westcountrypublications.co.uk>)
Ответы Re: Service reboot leaves postmaster.pid  (Fred Yankowski <fred@ontosys.com>)
Список pgsql-cygwin
> Note that someone else on the Cygwin email list reports occasional
> problems where cygrunsrv completely fails to start after NT restart.
> In their case they're using it for sshd, not postgres, but even so I'm
> somewhat concerned that cygrunsrv may have some timing-related
> initialization problem.

with your patch applied to 0.93-1 postmaster gets a signal and shuts down
properly. but after reboot it fails to start anyway. SCM writes error event
saying "Timeout (30000 milliseconds) waiting for the Cygwin PostgreSQL
Server service to connect". i've tried to track down a problem, but for me
it looks like that cygrunsrv isn't executing at all! (maybe i'm wrong, but

log = fopen("/svclog.txt", "w"); fprintf(log, "main %d\n", logcnt++);
fflush(log);

 in the beginning of main() does nothing after reboot. when service is
started manually, it works fine) nevertheless i can see cygrunsrv.exe
process in task manager. but it gets killed before i can attach a debugger
to see what's it doing...

/Dmitry

P.S. 4 hunks of your patch get rejected against 0.93-1 - it doesn't have
'dir' args in reg manipulation functions.


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

Предыдущее
От: Fred Yankowski
Дата:
Сообщение: cygrunsrv patch for system shutdown handling
Следующее
От: Fred Yankowski
Дата:
Сообщение: Re: Service reboot leaves postmaster.pid