Обсуждение: Bug #875: init script problem with reload

Поиск
Список
Период
Сортировка

Bug #875: init script problem with reload

От
pgsql-bugs@postgresql.org
Дата:
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