[Pkg-postgresql-public] Bug#736532: [postgres-xc] gtm proxy support in init script

Michael Meskes meskes at debian.org
Fri Apr 4 06:59:35 UTC 2014


On Thu, Apr 03, 2014 at 11:20:38AM -0400, Tim Sattarov wrote:
> can you send me output of
> sh -x postgres-xc start
> ?

Sure, attached.

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
-------------- next part --------------
+ set -e
+ PGXC_DATA=/var/lib/postgres-xc
+ PGXC_LOG=/var/log/postgres-xc
+ PGXC_RUN=/var/run/postgresql
+ . /lib/lsb/init-functions
+ run-parts --lsbsysinit --list /lib/lsb/init-functions.d
+ [ -r /lib/lsb/init-functions.d/20-left-info-blocks ]
+ . /lib/lsb/init-functions.d/20-left-info-blocks
+ FANCYTTY=
+ [ -e /etc/lsb-base-logging.sh ]
+ true
+ [ -r /etc/default/postgres-xc ]
+ . /etc/default/postgres-xc
+ FAST_STOP=true
+ [ -d /var/run/postgresql ]
+ chown postgres-xc.postgres-xc /var/run/postgresql
+ chmod 2775 /var/run/postgresql
+ do_ctl start Starting
+ ACTION=start
+ STATUS=0
+ status=0
+ [ start = stop ]
+ SEQUENCE=gtm gtm_proxy coordinator datanode
+ [ start = stop ]
+ PG_CTL=gtm_ctl
+ PG_START=gtm
+ EXTRA_OPTS=
+ log_daemon_msg Starting Postgres-XC gtm
+ [ -z Starting Postgres-XC gtm ]
+ log_daemon_msg_pre Starting Postgres-XC gtm
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ [ -t 1 ]
+ FANCYTTY=0
+ false
+ [ -z  ]
+ echo -n Starting Postgres-XC gtm:
Starting Postgres-XC gtm:+ return
+ ls /etc/postgres-xc/gtm/
+ [ -f /etc/postgres-xc/gtm/GTM/run ]
+ [ start = reload ]
+ [ start = reload ]
+ [ start = stop ]
+ [ 0 -eq 1 ]
+ [ gtm = gtm_proxy ]
+ [ gtm = gtm_proxy ]
+ start-stop-daemon -c postgres-xc -Sx /usr/bin/gtm_ctl -- start -D /var/lib/postgres-xc/GTM -Z gtm -l /var/log/postgres-xc/datanode.log
+ STATUS=0
+ true
+ [ 0 -gt 0 ]
+ ERRMSG=server starting
+ REPORT=GTM
+ [ start = status ]
+ log_progress_msg GTM
+ [ -z GTM ]
+ echo -n  GTM
 GTM+ [ 0 -eq 0 ]
+ [ start = start ]
+ check_if_running gtm GTM
+ status=0
+ pidfile=gtm.pid
+ sleep 2
+ [ -r /var/lib/postgres-xc/GTM/gtm.pid ]
+ head -n 1 /var/lib/postgres-xc/GTM/gtm.pid
+ PID=2433
+ [ -z 2433 ]
+ ps h -o comm -p 2433
+ [ gtm != gtm ]
+ return 0
+ STATUS=0
+ log_end_msg 0
+ [ -z 0 ]
+ local retval
+ retval=0
+ log_end_msg_pre 0
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ [ -t 1 ]
+ FANCYTTY=0
+ false
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ [ -t 1 ]
+ FANCYTTY=0
+ false
+ RED=
+ YELLOW=
+ NORMAL=
+ [ 0 -eq 0 ]
+ echo .
.
+ log_end_msg_post 0
+ :
+ return 0
+ PG_CTL=gtm_ctl
+ PG_START=gtm_proxy
+ EXTRA_OPTS=
+ log_daemon_msg Starting Postgres-XC gtm_proxy
+ [ -z Starting Postgres-XC gtm_proxy ]
+ log_daemon_msg_pre Starting Postgres-XC gtm_proxy
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ [ -t 1 ]
+ FANCYTTY=0
+ false
+ [ -z  ]
+ echo -n Starting Postgres-XC gtm_proxy:
Starting Postgres-XC gtm_proxy:+ return
+ ls /etc/postgres-xc/gtm_proxy/
+ [ -f /etc/postgres-xc/gtm_proxy/GTM_PROXY/run ]
+ [ start = reload ]
+ [ start = reload ]
+ [ start = stop ]
+ [ 0 -eq 1 ]
+ [ gtm_proxy = gtm_proxy ]
+ EXTRA_OPTS=-o -D /var/lib/postgres-xc/GTM_PROXY
+ [ gtm_proxy = gtm_proxy ]
+ start-stop-daemon -c postgres-xc -Sx /usr/bin/gtm_ctl -- start -D /var/lib/postgres-xc/GTM_PROXY -Z gtm_proxy -l /var/log/postgres-xc/datanode.log -o -D /var/lib/postgres-xc/GTM_PROXY
gtm_ctl: another server might be running; trying to start server anyway
+ STATUS=0
+ true
+ [ 0 -gt 0 ]
+ ERRMSG=server starting
+ REPORT=GTM_PROXY
+ [ start = status ]
+ log_progress_msg GTM_PROXY
+ [ -z GTM_PROXY ]
+ echo -n  GTM_PROXY
 GTM_PROXY+ [ 0 -eq 0 ]
+ [ start = start ]
+ check_if_running gtm_proxy GTM_PROXY
+ status=0
+ pidfile=gtm_proxy.pid
+ sleep 2
+ [ -r /var/lib/postgres-xc/GTM_PROXY/gtm_proxy.pid ]
+ head -n 1 /var/lib/postgres-xc/GTM_PROXY/gtm_proxy.pid
+ PID=2443
+ [ -z 2443 ]
+ ps h -o comm -p 2443
+ [  != gtm_proxy ]
+ status=1
+ return 0
+ STATUS=1
+ log_end_msg 1
+ [ -z 1 ]
+ local retval
+ retval=1
+ log_end_msg_pre 1
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ [ -t 1 ]
+ FANCYTTY=0
+ false
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ [ -t 1 ]
+ FANCYTTY=0
+ false
+ RED=
+ YELLOW=
+ NORMAL=
+ [ 1 -eq 0 ]
+ [ 1 -eq 255 ]
+ /bin/echo -e  failed!
 failed!
+ log_end_msg_post 1
+ :
+ return 1


More information about the Pkg-postgresql-public mailing list