| От | Scot L. Harris |
|---|---|
| Тема | Re: Multiple databases on seperate drives/file systems? |
| Дата | |
| Msg-id | 1086793474.20673.37.camel@lathe обсуждение исходный текст |
| Ответ на | Re: Multiple databases on seperate drives/file systems? (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-general |
On Wed, 2004-06-09 at 10:20, Tom Lane wrote: > Depends which startup script you are using. I know that up till > recently the Red Hat init script did > > su -l postgres -s /bin/sh -c "pg_ctl start ..." > > and because it forced /bin/sh, anything you might have put in say > ~postgres/.bash_profile wouldn't get read. You can just take out > that -s switch though. > > regards, tom lane Thanks for the pointer. The startup script in /etc/init.d does have the su line as you describe above. On RH8 it appears that /bin/sh is linked to /bin/bash. So does the shell being executed not look at the .bash_profile since it was invoked as /bin/sh? Or can I just put the PGDATA2 environment variable in a .profile file? -- Scot L. Harris <webid@cfl.rr.com>
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера