Re: [HACKERS] postgres init script things solved - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] postgres init script things solved
Date
Msg-id 199804270305.XAA19597@candle.pha.pa.us
Whole thread Raw
In response to postgres init script things solved  ("Claudiu Balciza" <cbalciza@mail.geocities.com>)
List 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 by date:

Previous
From: dg@illustra.com (David Gould)
Date:
Subject: Re: [HACKERS] Re: [INTERFACES] retrieving varchar size
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] pg_type populated incorrectly in some cases?