Re: I found it, I FOUND IT!!

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: I found it, I FOUND IT!!
Дата
Msg-id 200202102058.MAA15388@mail.ucsd.edu
обсуждение исходный текст
Ответ на I found it, I FOUND IT!!  (Mayan <escalante@canada.com>)
Список pgsql-general
> changed the file permission to '755'. After doing this, I created the
> link files:
>
> ln -s /etc/init.d/posgresql/linux  /etc/rc0.d/K02postgresql
> ln -s /etc/init.d/posgresql/linux  /etc/rc1.d/K02postgresql
> ln -s /etc/init.d/posgresql/linux  /etc/rc2.d/K02postgresql
> ln -s /etc/init.d/posgresql/linux  /etc/rc3.d/S98postgresql
> ln -s /etc/init.d/posgresql/linux  /etc/rc4.d/S98postgresql
> ln -s /etc/init.d/posgresql/linux  /etc/rc5.d/S98postgresql
>

That will work.. however the convention is to just have the script in
/etc/init.d, in other words, you don't need a postgresql *directory*, just
move the contents of linux into a *file* called /etc/init.d/postgresql, and I
think that's what the developers intended when creating the file "linux".

> I would assume that it's not running because psql is not a recognized
> command.

That is not an effective way to determine whether postgresql is running or
not. If psql is not found as a command, you should find the binary (should be
somewhere like /usr/local/postgresql/bin/psql) and then add the directory
path to your $PATH environment. Try this:
export PATH=$PATH:/usr/local/postgresql/bin/


To determine if it's running, you can use the other guy's suggestion of:
ps ax|grep postmaster

Jeff

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

Предыдущее
От: "Eric Peters"
Дата:
Сообщение: Re: how would I do this in a stored procedure? (solved)
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: what's the meaning of the word "Tioga" in source