Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] postgres init script things solved

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: cbalciza(at)mail(dot)geocities(dot)com
Cc: pgsql-hackers(at)hub(dot)org
Subject: Re: [HACKERS] postgres init script things solved
Date: 1998-04-27 03:05:02
Message-ID: 199804270305.XAA19597@candle.pha.pa.us (view raw or flat)
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)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)

In response to

Responses

pgsql-hackers by date

Next:From: Bruce MomjianDate: 1998-04-27 03:17:24
Subject: Re: [HACKERS] pg_type populated incorrectly in some cases?
Previous:From: David GouldDate: 1998-04-27 01:46:42
Subject: Re: [HACKERS] Re: [INTERFACES] retrieving varchar size

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group