Thread: Starting postgresql on startup
how would i go about making postgresql start when linux boots? i dont understand what the install document is going on about either i am running linux mandrake 7.1 and postgres 7.0.3 thank you antken
On Tue, 27 Mar 2001 16:05:55 +0100 "antken" <antken@reddish.stockport.sch.uk> wrote: > how would i go about making postgresql start when linux boots? > i dont understand what the install document is going on about either > i am running linux mandrake 7.1 and postgres 7.0.3 The easiest way is to run ntsysv as root... if that doesn't work, you'll need to look at your rc scripts. Cheers Zak
'linuxconf' on Mandrake 7.1 should be able to set postgres to run at boot time as long as you set Postgresql up from an rpm. If you got to 'Control Panel' -> 'Control service activity' -> 'postgresql'. Set Startup to automatic and select the run levels you want Postgresql to run in, usually 3 & 5.
If you compiled Postgresql from source then I think there is a script in /contrib (There is in 7.1 Beta :-) ) which sets-up an rc script. This should then make postgresql available in linuxconf.
Regards
Ben
P.S. This works in Mandrake 7.0 & 7.2 so hopefully 7.1
> -----Original Message-----
> From: Zak McGregor [mailto:zak@mighty.co.za]
> Sent: 30 March 2001 05:05
> To: antken
> Cc: pgsql-general@postgresql.org
> Subject: Re: [GENERAL] Starting postgresql on startup
>
>
> On Tue, 27 Mar 2001 16:05:55 +0100
> "antken" <antken@reddish.stockport.sch.uk> wrote:
>
> > how would i go about making postgresql start when linux boots?
> > i dont understand what the install document is going on about either
> > i am running linux mandrake 7.1 and postgres 7.0.3
>
> The easiest way is to run ntsysv as root... if that doesn't
> work, you'll
> need to look at your rc scripts.
>
> Cheers
>
> Zak
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>