Re: Found this in the server log on MAC OSX

Поиск
Список
Период
Сортировка
От David Garamond
Тема Re: Found this in the server log on MAC OSX
Дата
Msg-id 403DB463.1050904@zara.6.isreserved.com
обсуждение исходный текст
Ответ на Re: Found this in the server log on MAC OSX  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane wrote:
>>StopService()
>>{
>>        ConsoleMessage "Stopping PostgreSQL database services"
>>        /usr/local/pgsql/bin/pg_ctl stop -D /usr/local/pgsql/data
>>        x=`/bin/ps axc | /usr/bin/grep postgres`
>>        if /bin/test "$x"
>>        then
>>                set $x
>>                kill -9 $x
>>        fi
>>}
>
> Gack.  Whoever wrote this should be shot.  Take out everything after the
> "pg_ctl stop" line.  You might want to add "-m immediate" to the pg_ctl
> command as a less dangerous way of encouraging a fast shutdown...

BTW, I remember vaguely that the Cpanel 3 scripts (Cpanel is a
webhosting control panel product) used to do something like this for
every daemon... the horror...

--
dave


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

Предыдущее
От: Karam Chand
Дата:
Сообщение: Re: Windows Library for libpq
Следующее
От: Shachar Shemesh
Дата:
Сообщение: Re: Windows Library for libpq