Re: Yum install fails to stop PostgreSQL on complete removal - Mailing list pgsql-pkg-yum

From Craig Ringer
Subject Re: Yum install fails to stop PostgreSQL on complete removal
Date
Msg-id 53A19ECF.4050206@2ndquadrant.com
Whole thread Raw
In response to Re: Yum install fails to stop PostgreSQL on complete removal  (Devrim Gündüz <devrim@gunduz.org>)
Responses Re: Yum install fails to stop PostgreSQL on complete removal
List pgsql-pkg-yum
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/18/2014 10:04 PM, Devrim Gündüz wrote:
>
> 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.

So I see. Bizarre. Neither seems to be taking effect here.

I'll debug locally.

- --
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJToZ7PAAoJELBXNkqjr+S2YIgH/38lTWxTiYlVNdTsR/xPR9Cy
e1Y9c3NZHpo9zX94Nsx1AbD1qmJgMj5VpQ6ppa+3T9pW/R9bnsNWhREyCzQci1qz
uA163Y5NDK+hIBHOf+UWHtD85JLYt7cfrmzgdNJ3c2VWWnkP6VbMmdGsYCfIYRIk
cpOL3I4ITJDAwip3SyGvQPETTTpd77Q1aecp9xUUtGh2jx/bU9Eu7wy/cmuRKor8
eNFVEJDfBjcUwRxgUSlQ6nPwbZ+drFKwu1gsu58GA79/xpVeh7VyB8LzbCTkY3z+
KH7p9iQqDWRYMLrAyWLzh0DEJh/MrDFAwcyBa2bJAfWyLnCnjv3LAsFuTf6h7H0=
=o5bt
-----END PGP SIGNATURE-----


pgsql-pkg-yum by date:

Previous
From: Craig Ringer
Date:
Subject: Re: Libevent conflict on EL-6?
Next
From: Devrim Gündüz
Date:
Subject: Re: Libevent conflict on EL-6?