Bug #875: init script problem with reload

From: pgsql-bugs(at)postgresql(dot)org
To: pgsql-bugs(at)postgresql(dot)org
Subject: Bug #875: init script problem with reload
Date: 2003-01-15 11:07:45
Message-ID: 20030115110745.5C028475F6E@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

philippe (philippe(at)chocottes(dot)cjb(dot)net) reports a bug with a severity of 3
The lower the number the more severe it is.

Short Description
init script problem with reload

Long Description
In the RPM from ftp, for postgresql 7.2.3 you have an error in the
/etc/rc.d/init.d/postgresql reload
The reload function is
reload(){
su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl reload -D $PGDATA -s" > /dev/null 2>&1
}

but here $PGDATA is no initialised.
Maybee you can add the same test as in stop()

if [ -f /var/lib/pgsql/PG_VERSION ] && [ -d /var/lib/pgsql/base/template1 ]
then
export PGDATA=/var/lib/pgsql
else
export PGDATA=/var/lib/pgsql/data
fi

Sample Code

No file was uploaded with this report

Browse pgsql-bugs by date

  From Date Subject
Next Message pgsql-bugs 2003-01-15 23:09:58 Bug #876: Bugs Inserts Arrays
Previous Message Justin Clift 2003-01-15 04:33:29 Re: Bug #874: Install pgsql on solaris 8 error