Re: [HACKERS] postgres init script things solved
От | Bruce Momjian |
---|---|
Тема | Re: [HACKERS] postgres init script things solved |
Дата | |
Msg-id | 199804270305.XAA19597@candle.pha.pa.us обсуждение исходный текст |
Ответ на | postgres init script things solved ("Claudiu Balciza" <cbalciza@mail.geocities.com>) |
Список | pgsql-hackers |
Applied. > > This is a multi-part message in MIME format. > > ------=_NextPart_000_0087_01BD6217.FE9E50C0 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: 7bit > > The postgresql-?.?.?/contrib/linux/postgres.init is meant to start your > postmaster at boot time and stop it at halt/reboot. Excelent. > But it is made for postgres account running tcsh. I know nothing about tchs > and my postgres account defaults to bash. So (thanks to Steve "Stevers!" > Coile) I changed it to bash: > ----------------------------------------------------- > if [ ${USE_SYSLOG} = "yes" ]; then > > su - ${PGACCOUNT} -c "(${POSTMASTER} ${PGOPTS} 2>&1 | logger -p > ${FACILITY}.notice) &" > /dev/null 2>&1 & > > else > > su - ${PGACCOUNT} -c "${POSTMASTER} ${PGOPTS} 2>>&1 ${PGLOGFILE} &" > > /dev/null 2>&1 & > > fi -- Bruce Momjian | 830 Blythe Avenue maillist@candle.pha.pa.us | Drexel Hill, Pennsylvania 19026 + If your life is a hard drive, | (610) 353-9879(w) + Christ can be your backup. | (610) 853-3000(h)
В списке pgsql-hackers по дате отправления: