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