Re: Init script for Slony-I has been broken.

From: Devrim Gündüz <devrim(at)gunduz(dot)org>
To: Tomonari Katsumata <t(dot)katsumata1122(at)gmail(dot)com>
Cc: pgsql-pkg-yum <pgsql-pkg-yum(at)postgresql(dot)org>
Subject: Re: Init script for Slony-I has been broken.
Date: 2015-01-27 20:44:05
Message-ID: 1422391445.16816.24.camel@gunduz.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-yum


Hi,

I pushed this for 9.2+

Regards, Devrim

On Tue, 2015-01-27 at 14:12 +0900, Tomonari Katsumata wrote:
> Hello,
>
> I noticed the init script for Slony-I has been broken.
>
> The script uses SLONCONNINFO variable from /etc/sysconfig/slony1-93.
> And slon is started like below.
> -------------------------------------------------
> 66 $SU -l postgres -c "$SLONDAEMON -f $SLONCONF -p $SLONPID
> $SLONCLUSTERNAME $SLONCONNINFO &" >> "$SLONLOGDIR/slonystartup.log"
> 2>&1 < /dev/null
> -------------------------------------------------
> http://git.postgresql.org/gitweb/?p=pgrpms.git;a=blob;f=rpm/redhat/9.3/slony1/EL-6/slony1.init;h=5df70f4ef1351ce8fe293fd49cb6626ec32a892e;hb=HEAD
>
> But if I set 'host=192.168.1.1 port=5433 dbname=testdb' to SLONCONNINFO,
> it doesn't work well...
> ("host" is read, but others are not read)
>
> So it should be:
> -------------------------------------------------
> 66 $SU -l postgres -c "$SLONDAEMON -f $SLONCONF -p $SLONPID
> $SLONCLUSTERNAME \"$SLONCONNINFO\" &" >>
> "$SLONLOGDIR/slonystartup.log" 2>&1 < /dev/null
> -------------------------------------------------
>
> Please check this!
>
> regards,
> -----------------
> Tomonari Katsumata
>
>

--
Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR

In response to

Browse pgsql-pkg-yum by date

  From Date Subject
Next Message Devrim Gündüz 2015-01-27 20:52:20 New or updated packages in the repo
Previous Message Bernd Helmle 2015-01-27 17:02:53 Bug in pgpool-II packages