Re: Unrecognized service: 8.1.3 on Fedora Core 3

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Unrecognized service: 8.1.3 on Fedora Core 3
Дата
Msg-id 16150.1140243637@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Unrecognized service: 8.1.3 on Fedora Core 3  ("François" <francois.x.hetu@gmail.com>)
Ответы Re: Unrecognized service: 8.1.3 on Fedora Core 3  ("François" <francois.x.hetu@gmail.com>)
Список pgsql-admin
"=?ISO-8859-1?Q?Fran=E7ois?=" <francois.x.hetu@gmail.com> writes:
> if I try at the command line to start the service:
>> service postgresql start
> I get:
>> unrecognized service

Looking at the Fedora "service" script, it seems to want the target file
to not only exist but be executable:

if [ -x "${SERVICEDIR}/${SERVICE}" ]; then
   env -i LANG=$LANG PATH=$PATH TERM=$TERM "${SERVICEDIR}/${SERVICE}" ${OPTIONS}
else
   echo $"${SERVICE}: unrecognized service" >&2
   exit 1
fi

So I'm thinking you forgot to set execute permission on the
postgresql init file.

Having said that ... why don't you use the RPM distribution?
It contains a vastly more modern init script than this thing
from contrib.

            regards, tom lane

В списке pgsql-admin по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: A question about differences between createdb and "create database"
Следующее
От: "François"
Дата:
Сообщение: Re: Unrecognized service: 8.1.3 on Fedora Core 3