summaryrefslogtreecommitdiffstats
path: root/postgresql.init
diff options
context:
space:
mode:
authorcvsdist <cvsdist@fedoraproject.org>2004-09-09 10:42:45 +0000
committercvsdist <cvsdist@fedoraproject.org>2004-09-09 10:42:45 +0000
commitc8cd9cbacd6ea183482b00cf7466161be17c4f3c (patch)
tree5bc85de0cd3986fb952d4ecae72b4902ce5af6cd /postgresql.init
parent06e8d17f1d18ae71142d7342ec781ea5d433fc8b (diff)
downloadpostgresql-setup-c8cd9cbacd6ea183482b00cf7466161be17c4f3c.tar.gz
postgresql-setup-c8cd9cbacd6ea183482b00cf7466161be17c4f3c.tar.xz
postgresql-setup-c8cd9cbacd6ea183482b00cf7466161be17c4f3c.zip
auto-import postgresql-7.3.4-1.rhl9 from postgresql-7.3.4-1.rhl9.src.rpmpostgresql-7_3_4-1_rhl9postgresql-7_3_4-11postgresql-7_3_4-10RHL-9-splitFC-1-split
Diffstat (limited to 'postgresql.init')
-rw-r--r--postgresql.init6
1 files changed, 5 insertions, 1 deletions
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.