tracefile

text/plain

Filename: tracefile
Type: text/plain
Part: 0
Message: Re: problems with startup script on upgrade
+ basename /dbs/postgres/bin/pg_ctl 
CMDNAME=pg_ctl
help=pg_ctl is a utility to start, stop, restart, and report the status
of a PostgreSQL server.

Usage:
  pg_ctl start   [-w] [-D DATADIR] [-s] [-l FILENAME] [-o "OPTIONS"]
  pg_ctl stop    [-W] [-D DATADIR] [-s] [-m SHUTDOWN-MODE]
  pg_ctl restart [-w] [-D DATADIR] [-s] [-m SHUTDOWN-MODE] [-o "OPTIONS"]
  pg_ctl status  [-D DATADIR]

Common options:
  -D DATADIR            Location of the database storage area
  -s                    Only print errors, no informational messages
  -w                    Wait until operation completes
  -W                    Do not wait until operation completes
(The default is to wait for shutdown, but not for start or restart.)

If the -D option is omitted, the environment variable PGDATA is used.

Options for start or restart:
  -l FILENAME           Write (or append) server log to FILENAME.  The
                        use of this option is highly recommended.
  -o OPTIONS            Command line options to pass to the postmaster
                        (PostgreSQL server executable)
  -p PATH-TO-POSTMASTER Normally not necessary

Options for stop or restart:
  -m SHUTDOWN-MODE      May be 'smart', 'fast', or 'immediate'

Shutdown modes are:
  smart                 Quit after all clients have disconnected
  fast                  Quit directly, with proper shutdown
  immediate             Quit without complete shutdown; will lead
                        to recovery run on restart

Report bugs to <pgsql-bugs@postgresql.org>.
advice=Try 'pg_ctl --help' for more information.
bindir=/dbs/postgres//bin
VERSION=7.1beta5
+ umask 077 
+ echo \c 
+ grep -s c 
ECHO_N=echo
ECHO_C=\c
+ echo /dbs/postgres/bin/pg_ctl 
+ grep / 
+ echo /dbs/postgres/bin/pg_ctl 
+ sed s,/[^/]*$,, 
self_path=/dbs/postgres/bin
+ [ -x /dbs/postgres/bin/postmaster ] 
+ [ -x /dbs/postgres/bin/psql ] 
PGPATH=/dbs/postgres/bin
po_path=/dbs/postgres/bin/postmaster
wait=
wait_seconds=60
logfile=
silence_echo=
shutdown_mode=smart
+ [ 7 -gt 0 ] 
+ shift 
POSTOPTS=-i
+ shift 
+ [ 5 -gt 0 ] 
+ shift 
PGDATA=/dbs/postgres/data/
+ shift 
+ [ 3 -gt 0 ] 
op=start
+ shift 
+ [ 2 -gt 0 ] 
logfile=/dbs/postgres/sql.log
+ shift 
+ shift 
+ [ 0 -gt 0 ] 
+ [ xstart = x ] 
+ [ -z /dbs/postgres/data/ ] 
+ [ -z  ] 
wait=no
sig=-TERM
DEFPOSTOPTS=/dbs/postgres/data//postmaster.opts.default
POSTOPTSFILE=/dbs/postgres/data//postmaster.opts
PIDFILE=/dbs/postgres/data//postmaster.pid
+ [ start = status ] 
+ [ start = stop -o start = restart ] 
+ [ start = start -o start = restart ] 
+ [ -f /dbs/postgres/data//postmaster.pid ] 
+ unset logopt 
+ [ -n /dbs/postgres/sql.log ] 
logopt=</dev/null >>$logfile 2>&1
+ [ -z -i ] 
POSTOPTS=-D /dbs/postgres/data/ -i
+ eval $po_path $POSTOPTS </dev/null >>$logfile 2>&1 & 
+ [ -f /dbs/postgres/data//postmaster.pid ] 
+ [ no = yes ] 
+ echo postmaster successfully started 
+ exit 0 
+ /dbs/postgres/bin/postmaster -D /dbs/postgres/data/ -i