Permalink
Browse files

- Remove init script from all runlevels before uninstall. Per #RH Bug…

…zilla

  532177
  • Loading branch information...
devrim
devrim committed Nov 3, 2009
1 parent 8fd7fda commit c20ce90552cd8720b0ab238d821ccb125568d772
Showing with 11 additions and 1 deletion.
  1. +11 −1 pgpool.spec
View
@@ -1,7 +1,7 @@
Summary: Pgpool is a connection pooling/replication server for PostgreSQL
Name: pgpool-II
Version: 2.2.5
-Release: 2%{?dist}
+Release: 3%{?dist}
License: BSD
Group: Applications/Databases
URL: http://pgpool.projects.PostgreSQL.org
@@ -72,6 +72,12 @@ rm -rf %{buildroot}
/sbin/ldconfig
chkconfig --add pgpool
+%preun
+if [ $1 = 0 ] ; then
+ /sbin/service pgpool condstop >/dev/null 2>&1
+ chkconfig --del pgpool
+fi
+
%postun -p /sbin/ldconfig
%files
@@ -104,6 +110,10 @@ chkconfig --add pgpool
%{_libdir}/libpcp.so
%changelog
+* Tue Nov 3 2009 Devrim Gunduz <devrim@CommandPrompt.com> 2.2.5-3
+- Remove init script from all runlevels before uninstall. Per #RH Bugzilla
+ 532177
+
* Mon Oct 5 2009 Devrim Gunduz <devrim@CommandPrompt.com> 2.2.5-2
- Add 2 new docs, per Tatsuo.

0 comments on commit c20ce90

Please sign in to comment.