Thread

  1. where does the -i go?

    Steve Aras <steve@stevearas.com> — 2001-03-31T18:31:51Z

    I've seen there are multiple ways of doing the -i for postmaster.
    Someone said something like:  Uncomment #PGOPTS= -i  Iv'e also seen it
    in the postmaster call  e.g.  postmaster -i  foo
    
    Do I need to add it to /rc.d/init.d/postgresql in the line below?
     Where?
    
    su -l postgres -c "/usr/bin/pg_ctl -D $PGDATA -p /usr/bin/postmaster
    start  >/dev/null 2>&1"
    
    
    
    
    
  2. Re: where does the -i go?

    Justin Clift <jclift@iprimus.com.au> — 2001-04-01T05:27:39Z

    Hi,
    
    I'd generally do :
    
    su - postgres -c "pg_ctl start -o '-i' > /dev/null 2>&1&"
    
    Making sure the correct environment variables are in the .profile or
    .bashrc start scripts for the postgres user of course.  (Depending on OS
    and default shell for the postgres)
    
    Regards and best wishes,
    
    Justin Clift
    
    su -l postgres -c "/usr/bin/pg_ctl -D $PGDATA -p /usr/bin/postmaster
    start  >/dev/null 2>&1"
    
    Steve Aras wrote:
    > 
    > I've seen there are multiple ways of doing the -i for postmaster.
    > Someone said something like:  Uncomment #PGOPTS= -i  Iv'e also seen it
    > in the postmaster call  e.g.  postmaster -i  foo
    > 
    > Do I need to add it to /rc.d/init.d/postgresql in the line below?
    >  Where?
    > 
    > su -l postgres -c "/usr/bin/pg_ctl -D $PGDATA -p /usr/bin/postmaster
    > start  >/dev/null 2>&1"
    > 
    > ---------------------------(end of broadcast)---------------------------
    > TIP 4: Don't 'kill -9' the postmaster
    
    -- 
    "My grandfather once told me that there are two kinds of people: those
    who work and those who take the credit. He told me to try to be in the
    first group; there was less competition there."
         - Indira Gandhi