Re: Yum install fails to stop PostgreSQL on complete removal

Поиск
Список
Период
Сортировка
От Devrim Gündüz
Тема Re: Yum install fails to stop PostgreSQL on complete removal
Дата
Msg-id 1403100287.14178.13.camel@asus-laptop-03.gunduz.org
обсуждение исходный текст
Ответ на Yum install fails to stop PostgreSQL on complete removal  (Craig Ringer <craig@2ndquadrant.com>)
Ответы Re: Yum install fails to stop PostgreSQL on complete removal  (Craig Ringer <craig@2ndquadrant.com>)
Список pgsql-pkg-yum
Hi,

On Wed, 2014-06-18 at 12:37 +0800, Craig Ringer wrote:

> It looks like the PGDG RPMs for PostgreSQL don't stop the server in
> the prerm script even when the package is being fully uninstalled, not
> just replaced.

I think we do?

%preun server
if [ $1 = 0 ] ; then
        /sbin/service postgresql-%{majorversion} condstop >/dev/null 2>&1
        chkconfig --del postgresql-%{majorversion}
fi


> Separately, I'd like to _restart_ PostgreSQL in a %post script if it's
> already running and we updated the package. PostgreSQL shouldn't
> really be running w/o a restart after a minor version update.

We do restart it.

Regards,
--
Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR


Вложения

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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: Docs and examples deleted from package
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: Libevent conflict on EL-6?