[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to start postgresql server at machine startup?



2008/10/28 Star Liu <minxinjianxin@gmail.com>:
> On Tue, Oct 28, 2008 at 12:23 PM, Ron Johnson <ron.l.johnson@cox.net> wrote:
>> There *must* be a relevant /etc/init.d/postgre* file.
>
> yes, there is a /etc/init.d/postgresql-8.3, its content is:

try reading the contents of:
$ man update-rc.d

It will tell you how to set up the postgres-8.3 script to run at
different runlevels.

> so should i add the following line into this file?
> su -c "postgres -D /var/lib/postgresql/data >
> /var/lib/postgresql/log/logfile 2>&1 &" postgres

No it's already all in there, you can manually call this script by typing:
# /etc/init.d/postgresql-8.3 start

Adrian

-- 
24x7x365 != 24x7x52 Stupid or bad maths?
<erno> hm. I've lost a machine.. literally _lost_. it responds to
ping, it works completely, I just can't figure out where in my
apartment it is.


Reply to: