Simon
05-22-2001, 07:55 AM
Hi all,
This is driving me wild... Am setting postgres up on a Redhat 6.1 box... Problem is the init.d script refuses to work.. I have traced the problem down 2 one line
su - $PGUSER -c "$DAEMON start -o '-i' -D '$PGDATA' -s -l $PGLOG"
Linux refuses to accept the '-c' option, ie..
while
su - postgres "/usr/local/pgsql/bin/pg_ctl -o '-i' start -D /usr/local/pgsql/data"
will work (But not in the script)
su - postgres -c "/usr/local/pgsql/bin/pg_ctl -o '-i' start -D /usr/local/pgsql/data"
returns the following error...
pg_ctl: no operation mode specified
Try 'pg_ctl --help' for more information.
I assume there is a problem with the SU command ?
Many thanks
Simon
[ 22 May 2001: Message edited by: Simon ]
This is driving me wild... Am setting postgres up on a Redhat 6.1 box... Problem is the init.d script refuses to work.. I have traced the problem down 2 one line
su - $PGUSER -c "$DAEMON start -o '-i' -D '$PGDATA' -s -l $PGLOG"
Linux refuses to accept the '-c' option, ie..
while
su - postgres "/usr/local/pgsql/bin/pg_ctl -o '-i' start -D /usr/local/pgsql/data"
will work (But not in the script)
su - postgres -c "/usr/local/pgsql/bin/pg_ctl -o '-i' start -D /usr/local/pgsql/data"
returns the following error...
pg_ctl: no operation mode specified
Try 'pg_ctl --help' for more information.
I assume there is a problem with the SU command ?
Many thanks
Simon
[ 22 May 2001: Message edited by: Simon ]