Bug #875: init script problem with reload - Mailing list pgsql-bugs

From pgsql-bugs@postgresql.org
Subject Bug #875: init script problem with reload
Date
Msg-id 20030115110745.5C028475F6E@postgresql.org
Whole thread Raw
List pgsql-bugs
philippe (philippe@chocottes.cjb.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

pgsql-bugs by date:

Previous
From: Justin Clift
Date:
Subject: Re: Bug #874: Install pgsql on solaris 8 error
Next
From: pgsql-bugs@postgresql.org
Date:
Subject: Bug #876: Bugs Inserts Arrays