LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-02-2002, 01:21 PM   #1
albean
Member
 
Registered: Sep 2002
Distribution: fc2
Posts: 113

Rep: Reputation: 15
confused about a step in a howto for postgresql


Hi,

I'm working my way through a howto on setting up the postgresql server. In it is a step that I'm
getting an error on but I'm not sure how to troubleshoot it. Here is what the howto says (previous steps described the set-up of the postgresql script to start and stop the server at boot and shutdown):


use the following command to make sure that the script is run appropriately at boot and shutdown.
root:~# update-rc.d postgresql defaults

This is what I get when I try the statment:

[root@C tmp]# update-rc.d postgresql defaults
bash: update-rc.d: command not found


I thought maybe there needs to be a space after the update command and this is what I got:

[root@C tmp]# update -rc.d postgresql defaults
bash: update: command not found


I did a man on update but it talks about flushing kernal buffers to disk so I'm sure thats not what I should be looking at. I'm not sure where to go from here. Mainly because I'm not sure what "update-rc.d postgresql defaults" is really supposted to do to the system.

This is what the howto shows:
use the following command to make sure that the script is run appropriately at boot and shutdown.
root:~# update-rc.d postgresql defaults
Adding system startup for /etc/init.d/postgresql ...
/etc/rc0.d/K20postgresql -> ../init.d/postgresql
/etc/rc1.d/K20postgresql -> ../init.d/postgresql
/etc/rc6.d/K20postgresql -> ../init.d/postgresql
/etc/rc2.d/S20postgresql -> ../init.d/postgresql
/etc/rc3.d/S20postgresql -> ../init.d/postgresql
/etc/rc4.d/S20postgresql -> ../init.d/postgresql
/etc/rc5.d/S20postgresql -> ../init.d/postgresql

so the only thing i can guess at is that its setting up some links but I can't see where update comes into play.



Thanks,
Al
 
Old 12-02-2002, 01:24 PM   #2
albean
Member
 
Registered: Sep 2002
Distribution: fc2
Posts: 113

Original Poster
Rep: Reputation: 15
Oh, one last thing. I understand what "bash: update-rc.d: command not found" means but if I should set the path what should I point it at? The "update" command that I did the man page on can't possibly be what I need to point to.


Thanks,
Al

Last edited by albean; 12-02-2002 at 01:30 PM.
 
Old 12-02-2002, 02:08 PM   #3
Bill Krauss
LQ Newbie
 
Registered: Mar 2002
Posts: 13

Rep: Reputation: 0
update-rc.d is used on the Debian distribution, you won't find it on Redhat. Try:
/sbin/chkconfig --add postgresql
 
Old 12-03-2002, 11:20 AM   #4
nonamenobody
Member
 
Registered: Oct 2002
Posts: 138

Rep: Reputation: 22
All this seems to do is setup postgresql to run at certain run level. You should be able to set this using your distros runlevel editor.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Step-By-Step Instruction to install Linksys WPC11 Ver.4 Wireless Card Zypher Linux - Hardware 8 08-12-2009 11:43 AM
Step by Step guied for Installation pent@net Dvb card under linux mobassir Linux - Networking 4 06-07-2006 08:31 PM
step by step howto dovecot - postfix fc4 hlpboplz Linux - Newbie 2 10-16-2005 04:30 PM
Games in linux (Newbie) Cedega/Wine HOWTO and confused koodoo Linux - Games 16 03-12-2005 09:13 AM
Step-by-Step: Making integrated Broadcome wireless adapter work with Mandrake 9.2 jmp875 Linux - Wireless Networking 16 06-30-2004 01:50 AM


All times are GMT -5. The time now is 10:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration