how to start postmaster at system boot on linux?

Started by Bernhard Krickabout 27 years ago3 messagesgeneral
Jump to latest
#1Bernhard Krick
h9151366@obelix.wu-wien.ac.at

how to start postmaster at system boot on linux?

please can anyone tell me which files i have to change step by step.

thank you !

In reply to: Bernhard Krick (#1)
re: how to start postmaster at system boot on linux?

how to start postmaster at system boot on linux?

Hi! This question has probably been answered before, but here is my
suggestion ( more or less copy&paste from the pg rpm):

(in attach)

Copy the file to /etc/rc.d/init.d and then proceed with normal config of
SysV runlevels to start it on, for example, runlevel 3.
(you can use control-panel to get there or you can do it manually, look at
other examples in /etc/rc.d/rc3.d ...they are sym links...).

In the update scritpt, you should do some cleanning (ie: vaccum).

Regards,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
`````````````````````````````````````````````
Silvio Emanuel Nunes Barbosa de Macedo
mailto:smacedo@inescn.pt

INESC - Porto - Grupo CAV
Pc da Republica, 93 R/C Tel:351 2 209 42 21
4000 PORTO PORTUGAL Fax:351 2 208 41 72

Attachments:

postgresqltext/plain; charset=US-ASCII; name=postgresqlDownload
#3Peter L. Berghold
Peter@berghold.net
In reply to: Silvio Emanuel Barbosa de Macedo (#2)
Re: how to start postmaster at system boot on linux?

Bernhard Krick wrote in message ...

how to start postmaster at system boot on linux?

please can anyone tell me which files i have to change step by step.

Create an entry in your /etc/rc3.d directory consisting of a symbolic
link to a startup script that you create for this purpose. Mine just
consists of a line

/bin/su postgres -c "/usr/local/pgsql/bin/postmaster -S -i -D
/local/db0"

that simple...