Unix Technical Forum

Start up script for Fedora Core 3

This is a discussion on Start up script for Fedora Core 3 within the Pgsql General forums, part of the PostgreSQL category; --> Dear all, We are using Fedora Core 3 in our company, and we installed postgresql 8.0.3 as the database ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-09-2008, 06:38 AM
Chris Guo
 
Posts: n/a
Default Start up script for Fedora Core 3

Dear all,



We are using Fedora Core 3 in our company, and we installed postgresql 8.0.3
as the database system. I wonder if anybody has the start up script for this
version so we can start postgresql service automatically after we reboot the
server.

Any help will be highly appreciated.



Chris


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-09-2008, 06:38 AM
Dianne Yumul
 
Posts: n/a
Default Re: Start up script for Fedora Core 3

Hello,

We have Fedora Core 4, but I'm pretty sure it's the same. To start the
service we use

/etc/rc.d/init.d/postgresql start

Now if you want postgresql to start automatically on boot you do:

chkconfig postgresql on

Read the man pages for chkconfig for more details.

Hope this helps.

On Aug 24, 2005, at 11:31 AM, Chris Guo wrote:

> Dear all,
> *
> We are using Fedora Core 3 in our company, and we installed postgresql
> 8.0.3 as the database system. I wonder if anybody has the start up
> script for this version so we can start postgresql service
> automatically after we reboot the server.
> Any help will be highly appreciated.
> *
> Chris



---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-09-2008, 06:38 AM
Tom Lane
 
Posts: n/a
Default Re: Start up script for Fedora Core 3

"Chris Guo" <cguo@at-sd.com> writes:
> We are using Fedora Core 3 in our company, and we installed postgresql =
> 8.0.3
> as the database system. I wonder if anybody has the start up script for =
> this
> version so we can start postgresql service automatically after we reboot =
> the
> server.


If you install the RPM distribution of Postgres (which is the way I'd
recommend, on RPM-based platforms), it comes with a suitable init
script.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-09-2008, 06:38 AM
Joshua D. Drake
 
Posts: n/a
Default Re: Start up script for Fedora Core 3

Chris Guo wrote:

> -->
>
> Dear all,
>
>
>
> We are using Fedora Core 3 in our company, and we installed postgresql
> 8.0.3 as the database system. I wonder if anybody has the start up
> script for this version so we can start postgresql service
> automatically after we reboot the server.
>

If you installed it from rpm then the startup script should already be
there. If you install it from src look
in postgresql-8.0.3/contrib/start-scripts

Sincerely,

Joshua D. Drake


> Any help will be highly appreciated.
>
>
>
> Chris
>



---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-09-2008, 06:38 AM
Alexandre Barros
 
Posts: n/a
Default Re: Start up script for Fedora Core 3

Chris Guo wrote:

> Dear all,
>
>
>
> We are using Fedora Core 3 in our company, and we installed postgresql
> 8.0.3 as the database system. I wonder if anybody has the start up
> script for this version so we can start postgresql service
> automatically after we reboot the server.
>
> Any help will be highly appreciated.
>
>
>
> Chris
>

personally i use something like this on my rc.local:

rm -f /opt/pgsql-8.0.3/dbdata/postmaster.pid
sudo -u pgsql /opt/pgsql-8.0.3/bin/pg_ctl -o -i -D
/opt/pgsql-8.0.3/dbdata/ -l /opt/pgsql-8.0.3/dbdata/logfile start

does the job, but i'm not sure i'd recommend it...


best regards.





---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-09-2008, 06:39 AM
Chris Guo
 
Posts: n/a
Default Re: Start up script for Fedora Core 3

Thanks, I found it.

-----Original Message-----
From: pgsql-general-owner@postgresql.org
[mailtogsql-general-owner@postgresql.org] On Behalf Of Joshua D. Drake
Sent: Wednesday, August 24, 2005 12:18 PM
To: Chris Guo
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] Start up script for Fedora Core 3

Chris Guo wrote:

> -->
>
> Dear all,
>
>
>
> We are using Fedora Core 3 in our company, and we installed postgresql
> 8.0.3 as the database system. I wonder if anybody has the start up
> script for this version so we can start postgresql service
> automatically after we reboot the server.
>

If you installed it from rpm then the startup script should already be
there. If you install it from src look
in postgresql-8.0.3/contrib/start-scripts

Sincerely,

Joshua D. Drake


> Any help will be highly appreciated.
>
>
>
> Chris
>



---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly


---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:41 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com