From cbf5959e96086e65fbb4064b888a45b1af6aed27 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 10 May 2011 16:12:31 -0400 Subject: [PATCH] LSB init block to initscript --- postgresql.init | 15 ++++++++++++--- postgresql.spec | 6 +++++- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/postgresql.init b/postgresql.init index 595ed61..b19edb0 100644 --- a/postgresql.init +++ b/postgresql.init @@ -3,13 +3,22 @@ # postgresql This is the init script for starting up the PostgreSQL # server. # +# This script is slightly unusual in that the name of the daemon (postmaster) +# is not the same as the name of the subsystem (postgresql) +# # chkconfig: - 64 36 # description: PostgreSQL database server. # processname: postmaster # pidfile: /var/run/postmaster.PORT.pid - -# This script is slightly unusual in that the name of the daemon (postmaster) -# is not the same as the name of the subsystem (postgresql) +### BEGIN INIT INFO +# Provides: postgresql +# Required-Start: $local_fs $remote_fs $network $named $syslog $time +# Required-Stop: $local_fs $remote_fs $network $named $syslog $time +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: start and stop PostgreSQL server +# Description: PostgreSQL database server +### END INIT INFO # PGVERSION is the full package version, e.g., 9.0.2 # Note: the specfile inserts the correct value during package build diff --git a/postgresql.spec b/postgresql.spec index fa6c21b..8ec8fc1 100644 --- a/postgresql.spec +++ b/postgresql.spec @@ -54,7 +54,7 @@ Summary: PostgreSQL client programs Name: postgresql %global majorversion 9.0 Version: 9.0.4 -Release: 1%{?dist} +Release: 2%{?dist} # The PostgreSQL license is very similar to other MIT licenses, but the OSI # recognizes it as an independent license, so we do as well. License: PostgreSQL @@ -820,6 +820,10 @@ rm -rf $RPM_BUILD_ROOT %endif %changelog +* Tue May 10 2011 Tom Lane 9.0.4-2 +- Add LSB init block to initscript, to ensure sane ordering at system boot +Resolves: #703215 + * Mon Apr 18 2011 Tom Lane 9.0.4-1 - Update to PostgreSQL 9.0.4, for various fixes described at http://www.postgresql.org/docs/9.0/static/release-9-0-4.html