Bug #875: init script problem with reload

Поиск
Список
Период
Сортировка
От pgsql-bugs@postgresql.org
Тема Bug #875: init script problem with reload
Дата
Msg-id 20030115110745.5C028475F6E@postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Justin Clift
Дата:
Сообщение: Re: Bug #874: Install pgsql on solaris 8 error
Следующее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: Bug #876: Bugs Inserts Arrays