Re: Found this in the server log on MAC OSX

From: David Garamond <lists(at)zara(dot)6(dot)isreserved(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Sean Shanny <shannyconsulting(at)earthlink(dot)net>, pgsql-general(at)postgresql(dot)org, "Ed L(dot)" <pgsql(at)bluepolka(dot)net>
Subject: Re: Found this in the server log on MAC OSX
Date: 2004-02-26 08:54:59
Message-ID: 403DB463.1050904@zara.6.isreserved.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Shachar Shemesh 2004-02-26 09:19:08 Re: Windows Library for libpq
Previous Message Karam Chand 2004-02-26 08:34:15 Re: Windows Library for libpq