LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-17-2001, 06:30 PM   #1
peterk
LQ Newbie
 
Registered: Apr 2001
Posts: 1

Rep: Reputation: 0
Question


To allow TCPIP connections to postgresql you need to insert "-i" in the startup script. I am using RH7 and have tried placing "-i" in a number of spots in the startup (postgresql) script files but nothing seems to work.
I am keen to connect to postgresql from a windows workstation using ODBC.
 
Old 08-14-2003, 01:47 PM   #2
jdruin
Member
 
Registered: Jul 2003
Location: Louisville aka Derby City
Distribution: WinXP SP2 and SP3, W2K Server, Ubuntu
Posts: 313

Rep: Reputation: 30
On about line 167 or so of /etc/rc.d/init.d/postgresql start up script it reads (approximately):

su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl -D $PGDATA -p /usr/bin/postmaster -o '-p ${PGPORT}' start > /dev/null 2>&1" < /dev/null

I think you can add the "-i" in the following position:

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

The -o option passes paramters directly to the underlying postmaster. These options that are passable by the -o include the -i intranet connection option.

Good luck
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PostgreSQL database running on RH7.3 standalone want to be accessed with Java gafoor Programming 2 07-11-2005 07:50 AM
setting up a printer with cups on RH7 for windows with samba TreeHugger Linux - Networking 2 11-11-2004 11:31 AM
Problems setting up PostgreSQL entheogen Linux - Software 0 08-30-2004 08:23 AM
setting up a RH7.2 box for a terminal server .... nufriend17 Linux - Software 0 09-23-2003 09:05 AM
setting up ftp server on RH7.2 Darkone Linux - Networking 0 08-08-2001 09:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration