Yum install fails to stop PostgreSQL on complete removal

From: Craig Ringer <craig(at)2ndquadrant(dot)com>
To: pgsql-pkg-yum(at)postgresql(dot)org
Subject: Yum install fails to stop PostgreSQL on complete removal
Date: 2014-06-18 04:37:24
Message-ID: 53A11784.5080107@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-yum

Hi

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'd like to add a prerm script that tests the prerm script argument to
see whether it's 0 (package being uninstalled) and if so, stops
PostgreSQL. Objections? This will *not* stop or restart PostgreSQL when
the package is just updated.

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.

Comments?

--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

Responses

Browse pgsql-pkg-yum by date

  From Date Subject
Next Message Craig Ringer 2014-06-18 06:53:21 Docs and examples deleted from package
Previous Message Craig Ringer 2014-06-18 04:13:30 bash profile for 9.3, 9.4 are wrong