postmaster start options on RedHat 7.2 - Mailing list pgsql-novice

From Brian Johnson
Subject postmaster start options on RedHat 7.2
Date
Msg-id 005601c1b31e$a14c2f80$3200a8c0@jecinc.on.ca
Whole thread Raw
In response to Re: Triggers  ("Josh Berkus" <josh@agliodbs.com>)
Responses Re: postmaster start options on RedHat 7.1  (hodges@xprt.net)
List pgsql-novice
I would like to add a couple of startup options to postgresql on my system,
but am having difficulty modifying the RedHat startup scripts (in
/etc/rc.d/init.d)

I would like to add -i to allow network connections and -l for ssl traffic

I think the line to modify is:
su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl  -D $PGDATA -p
/usr/bin/postmaster start  > /dev/null 2>&1" < /dev/null

I tried
su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl  -D $PGDATA -p
`/usr/bin/postmaster -i` start  > /dev/null 2>&1" < /dev/null
and
su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl  -D $PGDATA -p
'/usr/bin/postmaster -i' start  > /dev/null 2>&1" < /dev/null
and
su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl  -D $PGDATA -p
/usr/bin/postmaster -o "i" start  > /dev/null 2>&1" < /dev/null

with no luck


Suggestions?


pgsql-novice by date:

Previous
From: "Josh Berkus"
Date:
Subject: Re: [Novice] Create Table
Next
From: Dmitri Touretsky
Date:
Subject: Table with no primary key