From c8cd9cbacd6ea183482b00cf7466161be17c4f3c Mon Sep 17 00:00:00 2001 From: cvsdist Date: Thu, 9 Sep 2004 10:42:45 +0000 Subject: auto-import postgresql-7.3.4-1.rhl9 from postgresql-7.3.4-1.rhl9.src.rpm --- postgresql.init | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'postgresql.init') diff --git a/postgresql.init b/postgresql.init index f8b3954..b9a236f 100644 --- a/postgresql.init +++ b/postgresql.init @@ -66,6 +66,11 @@ TYPESET=`typeset -f|grep "declare"` # Find the name of the script NAME=`basename $0` +if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ] +then + NAME=${NAME:3} +fi + # Set defaults for port and database directory PGPORT=5432 @@ -81,7 +86,6 @@ fi [ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME} export PGDATA export PGPORT -export PGOPTS # Check that networking is up. # Pretty much need it for postmaster. -- cgit