pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedHow can I set postmaster as a service
10+ messages / 7 participants
[nested] [flat]
* How can I set postmaster as a service
@ 2003-09-05 11:26 shreedhar <shreedhar@lucidindia.net>
0 siblings, 2 replies; 10+ messages in thread
From: shreedhar @ 2003-09-05 11:26 UTC (permalink / raw)
To: pgsql-admin; Postgre General <pgsql-general@postgresql.org>
How can I set postmaster (database on) as a service and set it while system
booting if self?
Regards
Sreedhar Bhaskararaju
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: How can I set postmaster as a service
@ 2003-09-05 13:26 Thomas Wegner <thomas@wegner24.de>
parent: shreedhar <shreedhar@lucidindia.net>
1 sibling, 0 replies; 10+ messages in thread
From: Thomas Wegner @ 2003-09-05 13:26 UTC (permalink / raw)
To: pgsql-admin
#!/bin/sh
cygrunsrv --install PostgreSQL \
--path /usr/bin/postmaster \
--args "-D /usr/share/postgresql/data -i" \
--dep ipc-daemon2 \
--termsig INT \
--user Administrator \
--shutdown
--
Thomas Wegner
""shreedhar"" <shreedhar@lucidindia.net> schrieb im Newsbeitrag
news:003901c373a0$8a297440$1201a8c0@a4005...
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 4: Don't 'kill -9' the postmaster
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: [GENERAL] How can I set postmaster as a service
@ 2003-09-05 13:30 shreedhar <shreedhar@lucidindia.net>
0 siblings, 0 replies; 10+ messages in thread
From: shreedhar @ 2003-09-05 13:30 UTC (permalink / raw)
To: pgsql-admin; Reid Thompson <Reid.Thompson@ateb.com>
It is RHLinux 7.3.
----- Original Message -----
From: "Reid Thompson" <Reid.Thompson@ateb.com>
To: "shreedhar" <shreedhar@lucidindia.net>
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)
> >
>
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: [GENERAL] How can I set postmaster as a service
@ 2003-09-05 17:32 Jeffrey Melloy <jmelloy@visualdistortion.org>
parent: shreedhar <shreedhar@lucidindia.net>
1 sibling, 1 reply; 10+ messages in thread
From: Jeffrey Melloy @ 2003-09-05 17:32 UTC (permalink / raw)
To: shreedhar <shreedhar@lucidindia.net>; +Cc: pgsql-admin; Postgre General <pgsql-general@postgresql.org>
shreedhar wrote:
>How can I set postmaster (database on) as a service and set it while system
>booting if self?
>
>
>
What operating system are you using?
Jeff
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: How can I set postmaster as a service
@ 2003-09-05 18:05 Darko Prenosil <Darko.Prenosil@finteh.hr>
parent: Jeffrey Melloy <jmelloy@visualdistortion.org>
0 siblings, 0 replies; 10+ messages in thread
From: Darko Prenosil @ 2003-09-05 18:05 UTC (permalink / raw)
To: pgsql-general@postgresql.org
----- Original Message -----
From: "Jeffrey Melloy" <jmelloy@visualdistortion.org>
To: "shreedhar" <shreedhar@lucidindia.net>
Cc: "Postgre Admin" <pgsql-admin@postgresql.org>; "Postgre General"
<pgsql-general@postgresql.org>
Sent: Friday, September 05, 2003 7:32 PM
Subject: Re: [GENERAL] How can I set postmaster as a service
> shreedhar wrote:
>
> >How can I set postmaster (database on) as a service and set it while
system
> >booting if self?
> >
> >
> >
If this is linux, there is startup script in contrib dir. Copy the script to
/etc/init.d or something similar, depending on linux distribution, and do
the setup to activate postgres service on boot.
Regards !
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: [GENERAL] How can I set postmaster as a service
@ 2003-09-06 08:53 shreedhar <shreedhar@lucidindia.net>
0 siblings, 3 replies; 10+ messages in thread
From: shreedhar @ 2003-09-06 08:53 UTC (permalink / raw)
To: pgsql-admin; Postgre General <pgsql-general@postgresql.org>; Reid Thompson <Reid.Thompson@ateb.com>
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" <Reid.Thompson@ateb.com>
To: "shreedhar" <shreedhar@lucidindia.net>
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" <Reid.Thompson@ateb.com>
> > To: "shreedhar" <shreedhar@lucidindia.net>
> > 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)
> > > >
> > >
> >
> >
>
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: [GENERAL] How can I set postmaster as a service
@ 2003-09-06 09:09 Jean-Michel Chabanne <jeanmichel.chabanne@free.fr>
parent: shreedhar <shreedhar@lucidindia.net>
2 siblings, 0 replies; 10+ messages in thread
From: Jean-Michel Chabanne @ 2003-09-06 09:09 UTC (permalink / raw)
To: shreedhar <shreedhar@lucidindia.net>; +Cc: pgsql-admin; Postgre General <pgsql-general@postgresql.org>; Reid Thompson <Reid.Thompson@ateb.com>
shreedhar a écrit :
>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.
>
>
>
-o means options. All options follow beetween quotes.
... -o ' -p ${PGPORT} -i ' ...
>
>----- Original Message -----
>From: "Reid Thompson" <Reid.Thompson@ateb.com>
>To: "shreedhar" <shreedhar@lucidindia.net>
>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" <Reid.Thompson@ateb.com>
>>>To: "shreedhar" <shreedhar@lucidindia.net>
>>>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)
>>>>>
>>>>>
>>>>>
>>>
>>>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
>
>
>
--
Jean-Michel Chabanne
77450 MONTRY (FRANCE)
48" 54' N - 2" 49' E
Powered by Linux
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: How can I set postmaster as a service
@ 2003-09-06 09:22 Darko Prenosil <Darko.Prenosil@finteh.hr>
parent: shreedhar <shreedhar@lucidindia.net>
2 siblings, 0 replies; 10+ messages in thread
From: Darko Prenosil @ 2003-09-06 09:22 UTC (permalink / raw)
To: Postgre General <pgsql-general@postgresql.org>; Reid Thompson <Reid.Thompson@ateb.com>
----- Original Message -----
From: "shreedhar" <shreedhar@lucidindia.net>
To: "Postgre Admin" <pgsql-admin@postgresql.org>; "Postgre General"
<pgsql-general@postgresql.org>; "Reid Thompson" <Reid.Thompson@ateb.com>
Sent: Saturday, September 06, 2003 10:53 AM
Subject: Re: [GENERAL] How can I set postmaster as a service
> 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.
>
You do not need to change startup script, becuause there is option for
enabling tcp/ip in the postgresql configuration file.
Regards !
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: How can I set postmaster as a service
@ 2003-09-06 09:26 Paul Thomas <paul@tmsl.demon.co.uk>
parent: shreedhar <shreedhar@lucidindia.net>
2 siblings, 0 replies; 10+ messages in thread
From: Paul Thomas @ 2003-09-06 09:26 UTC (permalink / raw)
To: shreedhar <shreedhar@lucidindia.net>; +Cc: pgsql-general @ postgresql . org <pgsql-general@postgresql.org>
On 06/09/2003 09:53 shreedhar wrote:
> 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.
su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl -D $PGDATA -p
/usr/bin/postmaster '-p ${PGPORT}' start -o \" -i \" > /dev/null 2>&1" <
/dev/null
or in postgresql.conf
tcpip_socket = true
HTH
--
Paul Thomas
+------------------------------+---------------------------------------------+
| Thomas Micro Systems Limited | Software Solutions for the Smaller
Business |
| Computer Consultants |
http://www.thomas-micro-systems-ltd.co.uk |
+------------------------------+---------------------------------------------+
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: How can I set postmaster as a service
@ 2003-09-07 03:46 Anis W. Nugroho <anis_wn@gawab.com>
0 siblings, 0 replies; 10+ messages in thread
From: Anis W. Nugroho @ 2003-09-07 03:46 UTC (permalink / raw)
To: pgsql-admin
Actualy the easiest way to start postmaster in RH7.3 is via
'ntsysv' command by root, and check the postgres service. Try
it.
If you want to connect to the database via remote host, you have
to edit the file *.conf in the /var/lib/pgsql/data/ directory.
The easiest way to do it is 'su - postgres' from root which will
set the current directory to /var/lib/pgsql/ (the home dir for
postgres account), then 'cd data'.
Good luck,
Anis WN
________________________________
Free multi-lingual web-based and POP3 email service with a
generous 15MB of storage, a choice of themes for your mailbox,
message filtering, plus spam and virus protection
Sign up now: http://www.gawab.com
^ permalink raw reply [nested|flat] 10+ messages in thread
end of thread, other threads:[~2003-09-07 03:46 UTC | newest]
Thread overview: 10+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-09-05 11:26 How can I set postmaster as a service shreedhar <shreedhar@lucidindia.net>
2003-09-05 13:26 ` Thomas Wegner <thomas@wegner24.de>
2003-09-05 17:32 ` Jeffrey Melloy <jmelloy@visualdistortion.org>
2003-09-05 18:05 ` Darko Prenosil <Darko.Prenosil@finteh.hr>
2003-09-05 13:30 Re: [GENERAL] How can I set postmaster as a service shreedhar <shreedhar@lucidindia.net>
2003-09-06 08:53 Re: [GENERAL] How can I set postmaster as a service shreedhar <shreedhar@lucidindia.net>
2003-09-06 09:09 ` Jean-Michel Chabanne <jeanmichel.chabanne@free.fr>
2003-09-06 09:22 ` Darko Prenosil <Darko.Prenosil@finteh.hr>
2003-09-06 09:26 ` Paul Thomas <paul@tmsl.demon.co.uk>
2003-09-07 03:46 Re: How can I set postmaster as a service Anis W. Nugroho <anis_wn@gawab.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox