Colin Bodor wrote:
> 
> how should I go about having postgresql start on boot? I am using redhat
> 6. I figured just add a line to rc.local and keep it simple but I have
> herd that adding a line to inittab is better, so I tried that. it works
> but I get a error from init saying the line is too long. what is the
> recomended way to start postgres on a linux/redhat system?
> 
> ************

Are you using the RPM's that came with RH 6??  If so, cd to the
appropriate runlevel directory and create a symlink to
/etc/rc.d/init.d/postgresql.  Use a relatively high number in it: For
instance, if you want postgresql in runlevel 5, cd to /etc/rc.d/rc5.d
and execute: ln -s ../init.d/postgresql S75postgresql .  You will also
need to create the appropriate K files in the runlevels that you don't
want postgresql running.

Or, you can run tksysv and make postgresql active in the runlevels of
your choosing.

For a RPM distribution of postgresql on RedHat 6, this is the
recommended (and RedHat supported) way of doing things.  

If you create the startup in rc.local, you may get things overwritten
the next time you upgrade the initscripts package, so, beware.

If this is a RPM distribution of postgresql, you may want to read my
notes at http://www.ramifordistat.net/postgres .

Lamar Owen
WGCR Internet Radio

************

Reply via email to