Thread: Init script for Slony-I has been broken.
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
Hi, On Tue, 2015-01-27 at 14:12 +0900, Tomonari Katsumata wrote: > I noticed the init script for Slony-I has been broken. <snip> Thanks for the patch! I submitted the changes to the repository. I will push the updated packages soon. Regards, -- Devrim GÜNDÜZ Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer Twitter: @DevrimGunduz , @DevrimGunduzTR
Attachment
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