Glyn Astill glynastill at yahoo.co.uk
Wed Jan 9 11:01:16 PST 2008
Actually.. How do I run strace from with my start script?


I'm basically doing:

prefix=/usr/local/pgsql
PGDATA="/data/postgres"
PGUSER="slony"
SLONLOG="$PGDATA/slon.log"
SLONCONF="-f $PGDATA/slon.conf"
SLONPID=="$PGDATA/slon.pid"
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON="$prefix/bin/slon"

start-stop-daemon --start --verbose --pidfile $SLONPID --chuid
$PGUSER --exec $DAEMON -- $SLONCONF 

--- Christopher Browne <cbbrowne at ca.afilias.info> wrote:

> Glyn Astill <glynastill at yahoo.co.uk> writes:
> > I now get the following error:
> >
> > Way5b:/data/postgres# /etc/init.d/slony start
> > Starting Slon: Starting /usr/local/pgsql/bin/slon...
> > 2008-01-09 18:21:03 GMT ERROR  could not open configuration file
> > "/data/postgres/slon.conf"
> > 2008-01-09 18:21:03 GMT CONFIG main: slon version 1.2.12 starting
> up
> >
> > The file is there, is owned by postgres with read write
> permissions.
> >
> > Any ideas
> 
> Run strace against it to see if it says anything interesting?
> 
> e.g. - run:
> 
> % strace /path/to/slon -f /data/postgres/slon.conf >
> /tmp/output.log 2> /tmp/output.err
> 
> and then look through the trace to see what system calls failed
> -- 
> let name="cbbrowne" and tld="acm.org" in String.concat "@"
> [name;tld];;
> http://cbbrowne.com/info/linuxdistributions.html
> "It's like  a house   of cards  that   Godzilla  has  been 
> blundering
> through."  -- Moon, describing how system messages work on ITS
> 



      ___________________________________________________________
Support the World Aids Awareness campaign this month with Yahoo! For Good http://uk.promotions.yahoo.com/forgood/



More information about the Slony1-general mailing list