From: Nikhil S. <ni...@st...> - 2012-12-14 11:34:03
|
Hi Michael, I looked a bit more into this. Looks like either the gtm_ctl binary or the gtm daemon invoked from it is not releasing stdout/stderr properly. I worked around this by detaching to /dev/null by using the following inside my script: /usr/bin/gtm_ctl -D /var/lib/postgres-xc/gtm -Z gtm start > /dev/null 2>&1 HTH, Nikhils On Thu, Dec 13, 2012 at 6:44 PM, Nikhil Sontakke <ni...@st...>wrote: > Hi, > > This bit me as well. > > I compared pg_ctl and gtm_ctl source bases and they are almost similar in > terms of the start processing and handling. I wonder why in that case > gtm_ctl gets stuck when invoked from inside a script? > > Regards. > Nikhils > > > On Fri, Dec 7, 2012 at 10:53 AM, Koichi Suzuki <ko...@in...>wrote: > >> Hello; >> >> Okay, let me take this. >> >> Regards; >> --- >> Koichi Suzuki >> >> On Thu, 6 Dec 2012 11:57:08 +0100 >> Michael Meskes <me...@po...> wrote: >> >> > Hi, >> > >> > any idea why gtm_ctl hangs when its output get redirected into a >> variable like >> > this? >> > >> > i=$(/usr/bin/gtm_ctl start -D /var/lib/postgres-xc/gtm -Z gtm) >> > >> > Looks like a problem with output device handling. gtm is indeed started >> > correctly. Same kind of redirection works nicely with other commands >> like >> > pg_ctl. I don't feel like debugging gtm right now, maybe you guys know. >> > >> > Michael >> > -- >> > Michael Meskes >> > Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) >> > Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org >> > Jabber: michael.meskes at gmail dot com >> > VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL >> > >> > >> ------------------------------------------------------------------------------ >> > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial >> > Remotely access PCs and mobile devices and provide instant support >> > Improve your efficiency, and focus on delivering more value-add services >> > Discover what IT Professionals Know. Rescue delivers >> > http://p.sf.net/sfu/logmein_12329d2d >> > _______________________________________________ >> > Postgres-xc-developers mailing list >> > Pos...@li... >> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers >> >> >> ------------------------------------------------------------------------------ >> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial >> Remotely access PCs and mobile devices and provide instant support >> Improve your efficiency, and focus on delivering more value-add services >> Discover what IT Professionals Know. Rescue delivers >> http://p.sf.net/sfu/logmein_12329d2d >> _______________________________________________ >> Postgres-xc-developers mailing list >> Pos...@li... >> https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers >> > > > > -- > StormDB - http://www.stormdb.com > The Database Cloud > Postgres-XC Support and Service > -- StormDB - http://www.stormdb.com The Database Cloud Postgres-XC Support and Service |