Re: Found this in the server log on MAC OSX - Mailing list pgsql-general

From David Garamond
Subject Re: Found this in the server log on MAC OSX
Date
Msg-id 403DB463.1050904@zara.6.isreserved.com
Whole thread Raw
In response to Re: Found this in the server log on MAC OSX  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Karam Chand
Date:
Subject: Re: Windows Library for libpq
Next
From: Shachar Shemesh
Date:
Subject: Re: Windows Library for libpq