auto-starting postmaster with -i option

From: Andrew Perrin <aperrin(at)socrates(dot)berkeley(dot)edu>
To: pgsql-admin(at)postgresql(dot)org
Subject: auto-starting postmaster with -i option
Date: 2001-03-20 00:15:58
Message-ID: Pine.LNX.4.21.0103191913150.11027-100000@nujoma.perrins
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Greetings.

Running 7.0.3 under Debian 2.2, I'd like postmaster to start on boot with
the -i option. I've got it working with just the defaults, using
start-stop-daemon, but for some reason it ignores the section after the
--, which the start-stop-daemon documentation claims will be passed as
arguments to the executable. Here's the command from the
/etc/init.d/postgres file:

start-stop-daemon --chuid postgres --exec /usr/local/pgsql/bin/postmaste
r --start /usr/local/pgsql/bin/postmaster -- -S -d -i
-D/var/lib/postgres/data

But here's the output of pg_ctl status:

postgres(at)nujoma:~$ pg_ctl status
pg_ctl: postmaster is running (pid: 11145)
options are:
/usr/local/pgsql/bin/postmaster
-p 5432
-D /var/lib/postgres/data
-B 64
-b /usr/local/pgsql/bin/postgres
-N 32
-S

If a kind soul who has this working would be willing to send me some tips
I'd appreciate it.

ap

----------------------------------------------------------------------
Andrew J Perrin - Ph.D. Candidate, UC Berkeley, Dept. of Sociology
(Soon: Asst Professor of Sociology, U of North Carolina, Chapel Hill)
andrew_perrin(at)unc(dot)edu - http://www.unc.edu/~aperrin

Browse pgsql-admin by date

  From Date Subject
Next Message pgsql-admin 2001-03-20 03:19:50
Previous Message Tim Frank 2001-03-20 00:14:11 Re: Backing up postgresql databases