Init script for Slony-I has been broken.

From: Tomonari Katsumata <t(dot)katsumata1122(at)gmail(dot)com>
To: pgsql-pkg-yum <pgsql-pkg-yum(at)postgresql(dot)org>
Subject: Init script for Slony-I has been broken.
Date: 2015-01-27 05:12:21
Message-ID: CAC55fYdLYGUF8qO0NWYewxwDGW_ESCabuiLL-WA5rax4MwtDEw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-yum

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

Responses

Browse pgsql-pkg-yum by date

  From Date Subject
Next Message Devrim Gündüz 2015-01-27 16:28:51 Re: Init script for Slony-I has been broken.
Previous Message Graeme B. Bell 2015-01-26 11:57:58 PGDG repo differences for RHEL 6.6 / 7.