X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 912D0D1B89E; Sat, 6 Sep 2003 08:54:06 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 61126-02; Sat, 6 Sep 2003 05:53:37 -0300 (ADT) Received: from lucidindia.net (unknown [61.11.73.194]) by svr1.postgresql.org (Postfix) with ESMTP id D4A03D1B8E0; Sat, 6 Sep 2003 05:53:32 -0300 (ADT) Received: from a4005 ([192.168.1.18]) by lucidindia.net (8.11.6/8.11.6) with SMTP id h868rWk20596; Sat, 6 Sep 2003 14:23:33 +0530 Message-ID: <008601c37454$58df9b30$1201a8c0@a4005> From: "shreedhar" To: "Postgre Admin" , "Postgre General" , "Reid Thompson" References: <64AE3D5B518E3648ACC823FBCB0B7375B6D305@sr002-2kexc.ateb.com> Subject: Re: [GENERAL] How can I set postmaster as a service Date: Sat, 6 Sep 2003 14:23:29 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/113 X-Sequence-Number: 10201 I already had postgresql file in /etc/rc.d/init.d. I run the following ln commands as specified. if I boot my system it is opening database. But failing while opening database by remote host. May be -i option is missing. If I use the following line in postgresql file 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 could able to start database but I could not able to connect through remost host. If I change the option -o to -i I am getting an error while starting database itself. su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl -D $PGDATA -p /usr/bin/postmaster -i '-p ${PGPORT}' start > /dev/null 2>&1" < /dev/null How can I rectify this error. ----- Original Message ----- From: "Reid Thompson" To: "shreedhar" Sent: Friday, September 05, 2003 11:20 PM Subject: RE: [GENERAL] How can I set postmaster as a service > basically, mod the start script as necessary for your system. > cp it to /etc/init.d as postgresqlscript or whatever you want to call it > cd to /etc/rc3.d > ln -s ../init.d/postgresqlscript S95postgresql > ln -s ../init.d/postgresqlscript K94postgresql > > reid > > > > -----Original Message----- > > From: shreedhar [mailto:shreedhar@lucidindia.net] > > Sent: Friday, September 05, 2003 9:31 AM > > To: Postgre Admin; Reid Thompson > > Subject: Re: [GENERAL] How can I set postmaster as a service > > > > > > It is RHLinux 7.3. > > > > ----- Original Message ----- > > From: "Reid Thompson" > > To: "shreedhar" > > Sent: Friday, September 05, 2003 6:49 PM > > Subject: RE: [GENERAL] How can I set postmaster as a service > > > > > > > what operating system > > > > > > reid > > > > > > > > > > -----Original Message----- > > > > From: shreedhar [mailto:shreedhar@lucidindia.net] > > > > Sent: Friday, September 05, 2003 7:26 AM > > > > To: Postgre Admin; Postgre General > > > > Subject: [GENERAL] How can I set postmaster as a service > > > > > > > > > > > > How can I set postmaster (database on) as a service and set > > > > it while system booting if self? > > > > > > > > Regards > > > > Sreedhar Bhaskararaju > > > > > > > > > > > > ---------------------------(end of > > > > broadcast)--------------------------- > > > > TIP 2: you can get off all lists at once with the > > unregister command > > > > (send "unregister YourEmailAddressHere" to > > > > majordomo@postgresql.org) > > > > > > > > > > > >