It is normally started by a shell script called postgresql, which needs to be in /etc/init.d - it may well be there already. If not it should be included in whatever you installed it from. It starts with a comment that it is the init script for starting up the PostgreSQL server.
You then need the following symbolic links to it (at any rate this is how it is on Red Hat):
K36postgresql from
/etc/rc0.d
/etc/rc1.d
/etc/rc2.d
/etc/rc3.d
/etc/rc4.d
/etc/rc6.d
S64postgresql from
/etc/rc5.d
The names of the links are not important, but they must start with K or S followed by 2 numerics. S(tart) runs on startup, K(ill) on shutdown.
|